Raydium 3D Game Engine https://memak.raydium.org/ |
|
Howto ... https://memak.raydium.org/viewtopic.php?f=10&t=783 |
Page 1 of 1 |
Author: | AndyGFX [ Thu Jun 05, 2008 9:13 pm ] |
Post subject: | Howto ... |
Today i tried last version and i have a few questions: a) howto increase shadow quality b) howto add HDR/BLOOM effect c) howto add to car physics - drifting d) howto add reflection on car btw. good gra. engine. |
Author: | vicentecarro [ Thu Jun 05, 2008 11:18 pm ] |
Post subject: | Re: Howto ... |
AndyGFX wrote: Today i tried last version and i have a few questions: a) howto increase shadow quality Not an easy way i think. You can change raydium/shadow.c line 82. Quote: b) howto add HDR/BLOOM effect In main function, after the initialization of raydium and before the callback, put: raydium_hdr_enable(); Quote: c) howto add to car physics - drifting Hard question. Xfennec? Ouille? Quote: d) howto add reflection on car
For real reflection you will need design a shader. Xfennec may can help you with this. For a pseudo-reflection effect you can add an environment map for your object. First get a tga texture with a environment map (example : http://www.cs.umbc.edu/~olano/papers/rsibr/paint.jpg). Then modify the tri file of your object. You have to add the environment map at the end of each face using that reflection. Example: Code: -0.209936 -0.178479 0.066969 -0.047395 -0.346604 0.936813 0.428223 0.451172 coche1-a.tga#ENV_map.tga
|
Author: | ouille [ Fri Jun 06, 2008 6:45 pm ] |
Post subject: | |
Hello, What do you mean by exactly by drifting ? you can use Quote: raydium_ode_element_slip
This modify contact physics. At last you can use collide call back to create your own contact parameter according to ode contact possibility. Have a nice day Ouille |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |