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 / Dark Imposters and Fog

Author
Message
PeteyM5
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Buffalo NY USA
Posted: 15th Jun 2012 22:30
I have purchased Dark Imposters because the game I am designing has many trees, buildings, and possibly other objects. The problem I am currently having is it made the FOG dark or black. Wonder if this is an issue with Dark Imposters and Dark Basic Pro and if there is a fix. Dark Imposters did improve the speed somewhat.

I am using Advance Terrain, My Skydome ideal, Simple Meshes for Buildings, Trees were made with Treemagic. Using a Matrix to animate Water.

The Game is going to involve Automobiles driving around cities, towns, inside Arenas and have some GUI windows popup to interface with places when you drive up to them. May be either single player or MMORPG, have not decided yet.
PeteyM5
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Buffalo NY USA
Posted: 15th Jun 2012 22:47 Edited at: 16th Jun 2012 00:36
Think I did find a work around. Not all the in scene objects are set to be imposters like the Skydome object, Terrain, Water, Roads, Bridges, Vehicles. Some things are way too big to be an Imposter. I was gearing for some hi point objects like Trees and Buildings. I could set everything to be Imposters, but set the distance to a very high number and use the "IMP GROUP SET FOG COLOUR" command.

Edit: This did not work. All the Non Imposter objects are black in the distance. Still need help on this.

I tried changing the order things get initialize, Different settings for IMP START. Could set up the game with no fog, but does not look as real.
Matty H
17
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 17th Jun 2012 01:31
Could you post some code of the issue with as little code as needed to replicate it, preferably with no media too, if possible. Also, what version of DBPro are you using?

I tested it with fog before release and everything seemed to work fine. Have you tried resetting the fog colour to what you need in your game loop, probably just before sync, that might fix it for now.

PeteyM5
17
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Buffalo NY USA
Posted: 23rd Jun 2012 05:42


I did try setting the fog color before the sync. Also I am using version 1.0761 and when I do the update, it says it is all up to date.

I have to give credit for Dark Imposters, it does improve the speed. I have played with similar concepts using Visual Basic with Truevision3D / Revolution3D. That used billboards, shapes with less polygons. Also for forests, I tried putting simple 2D plane behind a bunch of 3D trees, giving an illusion that there is a big forest there. Only works if the terrain is flat. I think I have to give it some more depth though.
Matty H
17
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 25th Jun 2012 14:24
I have attached the animation example with fog added, let me know if it works for you.

If it works then it maybe another part of your program that is breaking it somehow.

Login to post a reply

Server time is: 2026-07-07 23:00:54
Your offset time is: 2026-07-07 23:00:54