Jump to content
  • Advertisement
Sign in to follow this  
cyber_wiz_2007

Problems with PRT

This topic is 4502 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have been using PRT with directX 9.0c and found the following problems. 1) I can't see much inside buildings. 2) if I enable adaptive mesh tesselation the model has cracks and bad vertex coloring. 3) the spherical light source does not seem to illuminate indoor areas. 4) overall the model does not resemble accurate indoor radiosity. has anyone got either a usage guide to PRT simulator settings or some sort of solution for using PRT for indoor environments? I basically need some advice on how to use the subdivision settings and how to use real lights inside a building/structure.

Share this post


Link to post
Share on other sites
Advertisement
Hi,
Quote:
Original post by cyber_wiz_2007
1) I can't see much inside buildings.
3) the spherical light source does not seem to illuminate indoor areas.
4) overall the model does not resemble accurate indoor radiosity.

has anyone got either a usage guide to PRT simulator settings or some sort of solution for using PRT for indoor environments?
I basically need some advice on how to use the subdivision settings and how to use real lights inside a building/structure.

The problem with indoor lighting simulation is that you need _many_ bounces to correctly do it. As with PRT the light always comes from the outside, you have to trace many bounces to correctly reach every part of your room/etc..
But that will take overly long.. I never had the patience to do PRT on an indoor scene correctly.
I don't think that you could place indoor lights with the current implementation of PRT in DX. (as lights are placed afterwards, and light contribution is taken into account only for directional light, that are infinitely far away)

kp

Share this post


Link to post
Share on other sites
Hi,

I noticed that it usually uses directional lights, but I found a function in the december release:-

D3DXSHEvaluateSphericalLight(...)

which takes a pointer to a vector called vPos as a parameter. I thought that vPos would mean that it could be placed inside the room. I'll have another look tonight to check whether this is the case.

thanks

Share this post


Link to post
Share on other sites
Quote:
Original post by cyber_wiz_2007
I noticed that it usually uses directional lights, but I found a function in the december release:-

D3DXSHEvaluateSphericalLight(...)

which takes a pointer to a vector called vPos as a parameter. I thought that vPos would mean that it could be placed inside the room. I'll have another look tonight to check whether this is the case.

wow, I didn't know about that! but even if it is what we think about, it's still true that many bounces are needed for the light coming from the outside to make some "realistic" effect inside. maybe you should let your PC on for tonight computing PRT for a small room, and try what you get :)
if you can achieve good results for an interior scene, I'm very interested in your results (please post some screenshots then)!

kp

Share this post


Link to post
Share on other sites
Also notice that there are additional SH lighting functions for:

D3DXSHEvalConeLight()
D3DXSHEvalHemisphereLight()

So this bumps the number of light types to 4:

- Directional
- Point
- Cone
- Hemispherical

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!