Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Fri Aug 23, 2019 7:07 am

All times are UTC




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Jun 09, 2008 9:46 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
I have created prototype od OBJ file converter to tri, but result is strange. Geometry must be OK, because collision work 100% OK. Only rendering looks like without Z-sort. What happens?

Image


convertor:

http://raydium.intelligentdevelopment.sk/obj_to_tri.zip

OBJ file:

Image

http://raydium.intelligentdevelopment.sk/land.zip

bin + code:

http://raydium.intelligentdevelopment.sk/AGFX_RayKartRacing.zip

Note: I tried other land with about 1500 triangles and rendering was good.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 09, 2008 10:44 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Code:
 #NORM

            $n[0] = $OBJ->{f}[$f]{verts}[$i]{vn}{i};

            $n[1] = $OBJ->{f}[$f]{verts}[$i]{vn}{k};

            $n[2] = $OBJ->{f}[$f]{verts}[$i]{vn}{j};

i,k,j? or i,j,k?
Not sure, but I think you have mixed the 2 final lines.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 6:50 am 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
Last few lines are OK ;) I found problem. 32bit TGA. I absolutly forgot, that becked texture is generated with alpha ;). Now is all OK.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 10:13 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
great then.

Could you do a linux binary to test your game? Oo maybe a gcc comand line to compile your project? :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 10:16 am 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
I a next a few days, I will try compile it under LINUX, I'm not a Linux expert, but i think that CodeBlock works under linux too and then i can't see any problem ;)

Now i have other problem, with HDR, I have it in code enabled but isn't rendered :(


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 10:57 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
HDR is a bit experimental right now.

By one side it has to be enabled BEFORE the callback function and AFTER the raydium initialising.
By other side the hdr effect is working a bit special:
If you look ground for a while the effect will fade until it dissappear. And it will keep in that situation until you see again the sky (mainly looking at upwards). We disscused a bit about this behaviour but currently is working in that way. So if your app is always seeing the ground you'll never see the HDR effect.

If you need another behaviour for the HDR we can discuss it here.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 11:00 am 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
I thin that best way for HDR/BLOOm is render it as postprocess.
1) render frame to Frame Buffer Object
2) make Horisontal blur
3) make verticla blur
4) draw as texture to ovrlay screen.

HDR isn't main problem for me now. ;) SKY is problem, textures are loaded and skybox is clean.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 11:33 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
I think, internally, HDR is working in that way. But all the steps are automatically done by the engine.

I didn't understood well the problem with the sky.
Are you skipping the sky drawing?
Textures are missing?
Are you using your own sky?(maybe HDR only works with the default skybox right now)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 11:51 am 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
I have all textures, all are loaded ( in log is loading confirmed ), but i have pink sky :( I can't see any differencies between my and your codes.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 1:00 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Are you using the last svn revision of raydium?

If not too up-to-date, then you have to place the skytextures in the same folder than the binary.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 3:28 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

Is fog disabled ?

Have a nice day
Ouille


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 4:50 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

Just add BOXback.tga and BOXfront ...

in data/textures and it will be ok.

Have a nice day.
Ouille


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 4:56 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

And don't forget php.ini file in your bin directory.

Automatic repository file download will work.

Have a nice day.

Ouille


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 5:12 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
vicente wrote:
Are you using the last svn revision of raydium?

If not too up-to-date, then you have to place the skytextures in the same folder than the binary.


- yes a have latest build
- i have used my folder structure for all items and is defined
raydium_path_string_from("./data/textures/*.tga:./data/cameras/*.cam:./data/cars/*.car:./data/fonts/*.tga:./data/meshes/*.tri:./data/particles/*.prt:./data/shaders/*.frag:./data/shaders/*.vert:./data/themes/*.gui"); if this dont work then is bug with init sky


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 10, 2008 5:12 pm 
Offline
User avatar

Joined: Thu Aug 24, 2006 4:06 pm
Posts: 73
Location: SLOVAKIA
ouille wrote:
Hello,

Just add BOXback.tga and BOXfront ...

in data/textures and it will be ok.

Have a nice day.
Ouille


yes. i have all this BOXxxxx textures on a correct place


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group