Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
133 user(s) are online (111 user(s) are browsing Forums)

Members: 0
Guests: 133

more...

Support us!

Headlines

 
  Register To Post  

AmiDARK Engine Alpha R2 - Small Tech DEMO
Quite a regular
Quite a regular


See User information
Hi,

Here is a small demo (not optimised) developed using AmiDARK Engine Alpha R2.
It show the use of :
1. 3D Models
2. 3D Model as skybox
3. Ambien light
3. Camera controls

Here is a small shot :
[img]http://files.amidark-engine.com/AlphaR2_Demos/Model&Skybox.JPG[/img]

And the link to DL the demo :
http://files.amidark-engine.com/AlphaR2_Demos/Model&Skybox.lha

Source code to create this piece of 3D is not too long :

[code]#include "libAmiDARK.h"

float YAngle = 0.0f;
float XAngle = 0.0f;
float CamXPos, CamYPos, CamZPos;

void DarkLoop( void ){
// Create display.
DESetDisplayMode( 640, 480, 32 );
DESetWindowOff();
DESyncOn();
DESyncRate( 0 );

// Load the skybox and setup its display properties
DELoadObject( "Models/Skybox.adeo", 2 );
DEScaleObject( 2, 10000, 10000, 10000 );
// DeSetObjectEx4( Object, WireFrame, Transparent, Cull, Filter, Light, Fog, Ambient )
DESetObjectEx4( 2, 0, 0, 0, 1, 0, 0, 0 );


// Load the apache 3D model and setup its display properties
DELoadObject( "Models/Jet.adeo", 1 );
DEScaleObject( 1, 100000, 100000, 100000 );
DESetObjectEx4( 1, 0, 0, 0, 1, 1, 1, 1 );

// Create ambient light 0 for global lighting effects.
DESetAmbient( 75 );
DEColorLightEx( 0, 255, 224, 64 );
DESetAmbientColor( DERgb( 64, 32, 8 ) );
DESetDirectionalLight( 0, 1.0, -0.5, 1.0 );

// Position the default camera to see the apache model and the skybox
DEPositionCameraEx( 0, 0, 0, -512 );
DERotateCameraEx( 0, 0, 0, 0 );
DESetCameraRangeEx( 0, 1.0, 8192 );

// Apply some fog effects for better environment rendering.
DEFogColorEx( 192, 160, 32 );
DEFogDistance( 8000 );
DEFogStart( 500 );
DEFogDensity( 1 );
DEFogON();

// Run the demo and rotate the apache model.
while( !DELoop() ){
YAngle = DEWrapValue( YAngle + 0.25 );
XAngle = DEWrapValue( XAngle + 0.125 );
CamXPos = DECos( YAngle ) * 160;
CamYPos = DESin( XAngle ) * 128;
CamZPos = DESin( YAngle ) * 160;
DEPositionCamera( CamXPos, CamYPos, CamZPos );
DEPointCamera( 0.0, 0.0, 0.0 );
DESync();
}
}

Regards,
Freddix aka AmiDARK

All we have to decide is what to do with the time that is given to us.
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Home away from home
Home away from home


See User information
@freddix

Impressive demo.

X5000
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Home away from home
Home away from home


See User information
@Freddix
On peg2/os4.1u2, after running give DSI. Stack trace looks like this:
Quote:

Stack trace:
module Model&Skybox.exe at 0x7EC24DD0 (section 5 @ 0x12DB0)
module Model&Skybox.exe at 0x7EC24FC0 (section 5 @ 0x12FA0)
module LIBS:mglut.library at 0x7EC08AFC (section 5 @ 0x1ADC)
module Model&Skybox.exe at 0x7EC1E8B4 (section 5 @ 0xC894)
module Model&Skybox.exe at 0x7EC12464 (section 5 @ 0x444)
module Model&Skybox.exe at 0x7EC20FF8 (section 5 @ 0xEFD8)
native kernel module newlib.library.kmod+0x00001f44
native kernel module newlib.library.kmod+0x00002b90
native kernel module newlib.library.kmod+0x00002d54
_start()+0x170 (section 1 @ 0x170)
native kernel module dos.library.kmod+0x0001b524
native kernel module kernel+0x0003ef08
native kernel module kernel+0x0003ef88


Pressing ignore start the demo (which are very cool! ), exit fine. Trying to run one more time, give the same result.

The same problem going to all the demos including in the new version of engine (amidark_title, crashes the same not at start, but at exit). And all the time stack trace looks the same (porogram->mglut->programm)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Quite a regular
Quite a regular


See User information
@kas1e
Probably something with MiniGL .... Don't know ...

All we have to decide is what to do with the time that is given to us.
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Home away from home
Home away from home


See User information
@freddix

If you can compile a debug version of demo/engine (with -g3 flag), then we can try to detect on which line it crashes (must to say that with previous versions of engine all was fine). I also tryed different versions of minigl/mglut (public ones, and wip ones) - the same result all the time.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Home away from home
Home away from home


See User information
@kas1e

I don't get that at all on my A1-XE, Radeon 9000. The only thing that I noticed was occasional slight gaps at the skybox seams, but that's probably caused by the skybox's vertices not quite lining up perfectly.

Other than that, it looks good.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Home away from home
Home away from home


See User information
@Freddix
While i write some "news-article" on russian amiga-related site about AmiDark, i browsing all that DarkGDK and DarkBasec Professional links, and i see, that they support all that pixel & vertex shaders , so have a question for you: what you have in mind about ? Will you add it by some kind of hack (while minigl do not have shaders), or will you support upcoming opengl realisation which will be based on gallium+mesa ?

I also found site, called darkbasicgames.com. There is a list of games done by that engines, and must to say they are pretty modern and cool.

For example demo called TravLHertz done on dark basic (youtube). Or for example on that youtube video, shows some games which done by DarkBasic professional. Or on that video somone do his own 3d engine, based on dark basic pro.

For sure when you will finish the project, you will give aos4 really big step forward to modern state of demos and games.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Quite a regular
Quite a regular


See User information
@kas1e:
Quote:
While i write some "news-article" on russian amiga-related site about AmiDark, i browsing all that DarkGDK and DarkBasec Professional links, and i see, that they support all that pixel & vertex shaders , so have a question for you: what you have in mind about ? Will you add it by some kind of hack (while minigl do not have shaders), or will you support upcoming opengl realisation which will be based on gallium+mesa ?

Technically, concerning Shaders, I will be limited on what MiniGL can do... If someone find me a solution or a trick to use shaders. I'll try to add this support too but I promess nothing concerning this.
MiniGL can for example do cartoon shading ... that mean that preliminar shader support exist (look the MiniGL demo installed with AmigaOS 4.1 u2)
Can you tell me more concerning Gallium+Mesa ?

Quote:
For example demo called TravLHertz done on dark basic (youtube). Or for example on that youtube video, shows some games which done by DarkBasic professional. Or on that video somone do his own 3d engine, based on dark basic pro.

- Concerning "TravLhertz" it uses PS2.x and VS2.X ... I doubt it can be done actually on Amiga OS 4... While some can on MiniGL ... some can't :(
- Concerning the 2nd video, nearly everything should be possible. Only reflection shader is not sure ... and concerning Physics, I think about something like Newton ... that can maybe be ported to Amiga OS 4...
Concerning the 3rd one. It should be possible too with the final engine.

Quote:
For sure when you will finish the project, you will give aos4 really big step forward to modern state of demos and games. .

I hope you're right ;)

All we have to decide is what to do with the time that is given to us.
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Home away from home
Home away from home


See User information
@freddix
Quote:

Can you tell me more concerning Gallium+Mesa ?

Gallium+Mesa will be our new 3d subsystem for newest carts (on which Hanz works right now). For first it will be faster that our current realisation (should be), and for second it will support everything from OpenGL (shaders and such) + all the other fucntions which minigl not have.

I.e. it will be modern, and full implementation of OpenGL on aos4 (the same as on win32 and on linux and macos).

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Quite a regular
Quite a regular


See User information
@kas1e:
Of course, if it will become the new standard for Amiga OS 4.1+, AmiDARK Engine will probably have a version for :)

All we have to decide is what to do with the time that is given to us.
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Home away from home
Home away from home


See User information
@freddix

Quote:

freddix wrote:
@kas1e:

MiniGL can for example do cartoon shading ... that mean that preliminar shader support exist (look the MiniGL demo installed with AmigaOS 4.1 u2)

There is NO shader support in MiniGL at all. Have a look at the cel-shading demo, and you'll see the trick that they use to get that effect. It's not as good as it would be if shaders were available.

Quote:

Can you tell me more concerning Gallium+Mesa ?


Gallium3D is the new driver API that MESA uses. It is designed to make writing such drivers easier.

Quote:

- Concerning the 2nd video, nearly everything should be possible. Only reflection shader is not sure ... and concerning Physics, I think about something like Newton ... that can maybe be ported to Amiga OS 4...
Concerning the 3rd one. It should be possible too with the final engine.


Reflections can be done (albeit with limitations) without GLSL. Have a look on NeHe for tutorials.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Home away from home
Home away from home


See User information
@Hans

Are there any plans to use galium on os4? Or haven't these things been decided yet? I knw that there have been talks about mesa for years.

X5000
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Home away from home
Home away from home


See User information
@Antique

Quote:

Antique wrote:
@Hans

Are there any plans to use galium on os4? Or haven't these things been decided yet? I knw that there have been talks about mesa for years.


Gallium 3D is the route that I will be taking. The old driver API is much more tied in to Linux than Gallium is, and it's set to be retired anyway.

Hans

Join Kea Campus' Amiga Corner and support Amiga content creation
https://keasigmadelta.com/ - see more of my work
Go to top
Re: AmiDARK Engine Alpha R2 - Small Tech DEMO
Quite a regular
Quite a regular


See User information
@Hans
Quote:
There is NO shader support in MiniGL at all. Have a look at the cel-shading demo, and you'll see the trick that they use to get that effect. It's not as good as it would be if shaders were available.

It was about this demo I though when I talked about shader ... but you're the master concerning MiniGL ( I didn't yet looked the source code of this demo ) :p

All we have to decide is what to do with the time that is given to us.
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project