Seraph
21-03-2006 14:13:53
I'm using plsm2 2 month ago, its really a great terrain renderer, but when I want to integrate ogre fresnel water demo into my app, I run into very strange problem, when I add the water plane , nothing got rendered...,the triangle count goes down to 210, when I remove the water plane, everything got ok. why? does it related to the splatting or vertex compression used by plsm2? maybe I need delve into the source of plsm2 to solve this problem? any hints will be greatly appreciated!
tuan kuranes
21-03-2006 15:12:17
pslm2 and fresnel plane are unrelated.
Watch carefully what you exclude/include in rendertarget post/pre update.
(from description of your bug, you may hide terrain.)
If you use oblique frustum plane optimization (fresnel demo + rendertarget demo), then check plane clip update hide/show.
Seraph
22-03-2006 01:29:02
thanks for the reply,I'll check it today, and I'll report my result later.
Seraph
22-03-2006 03:56:56
still can't solve this problem
I use the water code from Demo_Fresnel, btw, when I change to TerrainSceneManager, it works...
I tried to use PagingLandScapeDelegate to capture the page hide event notification, but it never got invoked. then , I comment out the render texture creation code , both the terrain and water plane show up properly(of course, the water plane is just an ugly black plane...).
any suggestions??
tuan kuranes
22-03-2006 09:12:46
User have successfully done this on the past... (from memory, Crashy, at least did it.)
If you can post a project zip or code that I can test/reproduce easily, I'll have a look.
Seraph
22-03-2006 11:57:49
thank you,tuan. you are so kind .I have sent a email to you enclosing the rar project file.
Lshink
23-03-2006 03:08:44
It would be nice to know what the fix it, as I've had the same problem -- but just ended up ditching it and using nfz's ocean shader instead.
Seraph
23-03-2006 04:37:33
I'll post a fix if I find the real problem ,but I didn't find it now .
you mentioned the ocean shader, is that the ogre1.2's ocean demo? may be I 'll have a try....
tuan kuranes
23-03-2006 12:15:37
Sorry, it was indeed a newly introduced bug in PLSM2 that cause the Bug.
Either use a different camera for each rendertarget or wait til cvs / SDK is updated. (I'll post a in "latest SDK" sticky thread. )
Lshink
23-03-2006 22:46:32
Seraph
24-03-2006 02:17:58
@tuan kuranes: just updated to latest sdk, it works great, thank you!
@Lshink: they are the same one