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 / Sparky's collision and treeparty problem ( trees disappear)

Author
Message
airforce1
17
Years of Service
User Offline
Joined: 2nd Apr 2009
Location:
Posted: 8th Dec 2011 04:56
When i Use the demo of treeparty i see trees but if i implement sparkys collision and take out the camera controls from the demo the tree disappears


this works, you can see the tree



doent work cant see trees
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Dec 2011 05:54
I dont get the point of the demos spmetimes...

Did you try dark physics?

airforce1
17
Years of Service
User Offline
Joined: 2nd Apr 2009
Location:
Posted: 8th Dec 2011 06:04
no i like sparkys is dark physics better for collision and i think my problem is a camera problem not sure
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 8th Dec 2011 12:35
Try seting camera range 0.001,20000

Cheers

I'm not a grumpy grandpa
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Dec 2011 13:53 Edited at: 8th Dec 2011 13:54
Could you please upload the project before/after along with the media?

Quote: "Did you try dark physics?"


Five reasons why not to use Dark Physics:

1) Not everyone has Dark Physics (it costs money and isn't supplied with DBP)
2) If you do have it, your program only runs on computers that also have it (or has this changed?)
3) It's slow as hell on older machines.
4) Incompatible with ATI cards
5) Other stupid bugs

TheComet

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 8th Dec 2011 19:53 Edited at: 8th Dec 2011 19:55
Quote: "1) Not everyone has Dark Physics (it costs money and isn't supplied with DBP)"

True
Quote: "2) If you do have it, your program only runs on computers that also have it (or has this changed?)"

Never been true, it runs in software mode on machines which don't have hardware support.
Quote: "3) It's slow as hell on older machines."

Probably true, just like games made today would be slow as hell on older machines. People still buy them. besides, dark physics will run reasonably well on machines 6 years old with optimisation. (And programming is all about optimisation!)
Quote: "4) Incompatible with ATI cards"

Again incorrect. It'll run in software mode on these.
Quote: "5) Other stupid bugs"

Now you're just being picky!


However, I do believe that Physics engines should be used as physics engines, and not as collision engines. If you need physics, use a physics engine. If you just want collisions between ground, and buildings/trees etc, use a collision engine.

My signature is NOT a moderator plaything! Stop changing it!
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Dec 2011 20:08
Cheers Mobiius for clearing that up... I always corget about colli checks... but physics allows for force calculation no¿

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Dec 2011 20:38
Quote: "Never been true, it runs in software mode on machines which don't have hardware support."


I remember a thread not too long ago explaining which DLLs you need to copy from Dark Physics into your project folder so it also runs on computers that don't support Dark Physics. What he explained was illegal though, and the thread ended up locked. I'll see if I can find it.

Quote: "Probably true, just like games made today would be slow as hell on older machines. People still buy them. besides, dark physics will run reasonably well on machines 6 years old with optimisation. (And programming is all about optimisation!)"


Yes, but why would you choose something that could be potentially slow when you have sparky's? It's blazingly fast and gets the job done better than with Dark Physics. Programming things is all about optimizing, and the obvious choice here is sparky's, not Dark Physics.

Quote: "Again incorrect. It'll run in software mode on these."


"Software mode" = bad That's what's in my mind. The game will slow down dramatically on ATI cards if you use Dark Physics.

Quote: "Now you're just being picky!"




But it's true, Dark Physics was harder for me to set up than a C++ compiler

Quote: "However, I do believe that Physics engines should be used as physics engines, and not as collision engines. If you need physics, use a physics engine. If you just want collisions between ground, and buildings/trees etc, use a collision engine."


Agreed.

TheComet

airforce1
17
Years of Service
User Offline
Joined: 2nd Apr 2009
Location:
Posted: 8th Dec 2011 22:37 Edited at: 8th Dec 2011 23:06
I had set autocam autocam on and i see the trees but now the problem is im using a plant map to place my trees i get them where there going but the scale really suck if i dt_scale like 40000 its big as hell then 39000 its gone its like to extremes either big ass trees or no trees then when i scale my terrain bigger to try to compensate the tree disappears and i have to scale it bigger just to to see the trees its like a neverending process.
Here is the zip file just change set dir


Edit: Move the sky box images from the levels folder to the image folder....sorry move them there by accedent
revenant chaos
DBPro Master
19
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 9th Dec 2011 05:48
If all you need is collision, use sparky's.

Quote: "I remember a thread not too long ago explaining which DLLs you need to copy from Dark Physics into your project folder so it also runs on computers that don't support Dark Physics."
Nope, that would also mean that computers would also require darkbasic to be installed (how can you have darkphysics without darkbasic?). You must be thinking of the PhysX runtime, not DarkPhysics itself.

Quote: ""Software mode" = bad That's what's in my mind."
Nope, ALL PhysX rigid bodies are handled in software mode, even with the latest and greatest nvidia GPUs. Hardware acceleration is only used for cloth, fluids, ?and particles?. My DarkPhysics-enabled project runs exactly the same reguardless of if I enable hardware acceleration or not.

Login to post a reply

Server time is: 2026-07-10 19:48:39
Your offset time is: 2026-07-10 19:48:39