Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Blitzterrain manual render error problem

Author
Message
Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 4th Aug 2012 10:30
Hi all,
I am getting a program crash when I try to use Blitzwerk terrain's manual render command.

I need to use the manual render rather than the autorender because I am using it with Dark Imposters and there is a render order conflict causing the terrain to keep flashing black.

here is the blitzterrain example 1 code modified to use a manual render


It crashes whenever I use the command, does this happen for anyone else?

is there something I am doing wrong?

and out of curiosity, has anyone else got dark imposters to work well with blitzterrain?

thankyou

kezzla

Sometimes I like to use words out of contents
kaedroho
18
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 20th Nov 2012 14:42 Edited at: 20th Nov 2012 14:43
Hi Kezzla,

Sorry that its taken a while to get back to you (just did a forum search for "blitzterrain").

If you haven't solved this yet, can you try using BT SetCurrentCamera and the update cull/lod commands. Thats most likely the problem.




A quick note: I don't recommend using manual rendering unless you really need to. It doesn't provide any benefits over auto rendering. It is useful for in very specific circumstances though which is why it still exists. It will be completely removed in BlitzTerrain 3.


Quote: "It crashes whenever I use the command, does this happen for anyone else?"

I'll take a look into the crashing (It should never do that!). Hopefully the above solution should prevent prevent the crash though.

Quote: "and out of curiosity, has anyone else got dark imposters to work well with blitzterrain?"

I haven't tried it yet. Are you getting any problems with them?


Again, apologies for taking so long to get back to you. I've been away from the forums for the past year (having a full time job and a degree to do at the same time...). I'm back around now so let me know if you have any more problems.

Kezzla
17
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 26th Nov 2012 05:24 Edited at: 26th Nov 2012 05:28
Thanks kaedroho, that has fixed the crashing issue.

I am still having trouble getting dark imposters to work with blitz terrain, it seems to mess with the blitzterrain blend mode.

some blend modes for fine without flashing, others go a bit nuts, it doesnt seem to matter which order I render BT and DI in they still fight unless I used certain blend modes.
It almost seems like they are fighting over the same image behind the scenes.
I think it may be an issue on Dark imposters end. not sure though.

I might make a new thread for this one though so people with the same problem can find it and use the information.

I will post an example showing the problem.

Thanks again

kaedroho
18
Years of Service
User Offline
Joined: 21st Aug 2007
Location: Oxford,UK
Posted: 26th Nov 2012 10:31
Thats excellent that it worked

The issues youre getting are most likely to do with the fact that both Dark Imposters and BlitzTerrain have their own rendering engines. Whats probably happening is one of us is setting a render state in DirectX but forgetting to switch it back. Then the other rendering engine ignoring the fact that the render state is wrong and drawing with it anyway!

I will contact the developer of Dark Imposters, thanks for reporting!

Login to post a reply

Server time is: 2026-07-07 14:22:38
Your offset time is: 2026-07-07 14:22:38