techPowerUp! Forums

Go Back   techPowerUp! Forums > Software > Programming & Webmastering

Reply
 
Thread Tools
Old Jan 31, 2012, 02:26 PM   #1
razaron
500 Posts
 
razaron's Avatar
 
Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts

System Specs

razaron's Physics Engine Project Log

I'm currently making the physics engine for an action rpg.

Here's the engine. You need Java and a gpu/igp that supports openGL.

Controls

Feature checklist

Update Log

Images

If it closes on start up try changing the first word ("java") in the batch file to the path of your Java executable. Make sure to include the quotes around path.
E.g. Change java to "C:\Program Files\Java\jre7\bin\java.exe"
__________________
My Anime List
BattleTag (EU): razaron#1882
Steam: Razaron

Last edited by razaron; Feb 2, 2012 at 11:25 AM.
razaron is offline  
Reply With Quote
Old Jan 31, 2012, 03:15 PM   #2
Maelstrom
500 Posts
 
Maelstrom's Avatar
 
Join Date: Sep 2008
Location: VA/PA
Posts: 500 (0.29/day)
Thanks: 139
Thanked 164 Times in 121 Posts

System Specs

So i DLed it, extracted it, and doubled clicked the "Start" batch file, and nothing really happened. CMD popped up for a second, but that's about it. Am I doing something wrong? I have java installed and I know my gpu supports openGL.
__________________

Made by PVTCaboose1337
Maelstrom is offline  
Reply With Quote
Old Jan 31, 2012, 03:37 PM   #3
cheesy999
1000 Posts
 
cheesy999's Avatar
 
Join Date: Jul 2010
Location: Near Canterbury, uk
Posts: 1,889 (1.79/day)
Thanks: 634
Thanked 562 Times in 453 Posts

System Specs

5002 on a phenom II x4

CPU-Z + screenshot -->
__________________
“if you run short on cash, theres always that option. dont forget to use vasaline” -Freedomeclipse

“Before you complain about lag, think about Jesus. He lagged three days before respawning.” -repman244
cheesy999 is offline  
Reply With Quote
Old Jan 31, 2012, 05:54 PM   #4
razaron
500 Posts
 
razaron's Avatar
 
Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts

System Specs

Quote:
Originally Posted by cheesy999 View Post
5002 on a phenom II x4

CPU-Z + screenshot --> http://img.techpowerup.org/120131/physics engine.gif
To start the simulation press the enter key. My bad, I forgot to mention that.
Also, pressing the R key resets the simulation.
__________________
My Anime List
BattleTag (EU): razaron#1882
Steam: Razaron
razaron is offline  
Reply With Quote
Old Feb 1, 2012, 02:17 AM   #5
helloWorld
75 Posts
 
Join Date: May 2011
Location: USA
Posts: 166 (0.23/day)
Thanks: 95
Thanked 33 Times in 16 Posts

System Specs

I have Java 6 Update 30 installed and the nVidia 290.53 drivers installed with a GTX 580, so I believe that I am good on the software and hardware installed.

However, I am running into the same issue that Maelstrom ran in to. Every time I try to execute the program, a command prompt pops up and then disappears within a second.
helloWorld is offline  
Reply With Quote
Old Feb 1, 2012, 07:13 AM   #6
pantherx12
Eligible for custom title
 
pantherx12's Avatar
 
Join Date: Jan 2009
Location: ENGLAND-LAND-LAND
Posts: 8,443 (5.27/day)
Thanks: 1,188
Thanked 1,705 Times in 1,375 Posts

System Specs

When I get to around 70 polys I get a massive performance hit.
System specs <--
pantherx12 is offline  
Reply With Quote
Old Feb 1, 2012, 02:10 PM   #7
razaron
500 Posts
 
razaron's Avatar
 
Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts

System Specs

Quote:
Originally Posted by helloWorld View Post
I have Java 6 Update 30 installed and the nVidia 290.53 drivers installed with a GTX 580, so I believe that I am good on the software and hardware installed.

However, I am running into the same issue that Maelstrom ran in to. Every time I try to execute the program, a command prompt pops up and then disappears within a second.
Quote:
Originally Posted by Maelstrom View Post
So i DLed it, extracted it, and doubled clicked the "Start" batch file, and nothing really happened. CMD popped up for a second, but that's about it. Am I doing something wrong? I have java installed and I know my gpu supports openGL.
You have to change something in the batch file but I'm not sure what. Sorry.


Quote:
Originally Posted by pantherx12 View Post
When I get to around 70 polys I get a massive performance hit.
System specs <--
Odd. I can get to 105-110 polys before the performance drops.
This is probably because I've coded it in Java 1.7 (then ran it using Java 1.7).
__________________
My Anime List
BattleTag (EU): razaron#1882
Steam: Razaron
razaron is offline  
Reply With Quote
Old Feb 1, 2012, 09:43 PM   #8
razaron
500 Posts
 
razaron's Avatar
 
Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts

System Specs

Quote:
Originally Posted by razaron View Post
You have to change something in the batch file but I'm not sure what. Sorry.
Change the first word ("java") in the batch file to the path of your Java executable.

E.g. Change java to "C:\Program Files\Java\jre7\bin\java.exe"
__________________
My Anime List
BattleTag (EU): razaron#1882
Steam: Razaron
razaron is offline  
Reply With Quote
Old Feb 1, 2012, 09:49 PM   #9
theJesus
2000 Posts
 
theJesus's Avatar
 
Join Date: Jul 2008
Location: Canton, Ohio
Posts: 3,116 (1.76/day)
Thanks: 2,301
Thanked 865 Times in 612 Posts

System Specs

And make sure to keep the quotes so it doesn't parse the space in "program files"
__________________
HEAT
“congratulations! you have successfully been inflicted with tpuitis! symptons include: prolonged computer usage, urge to make tpu your homepage, posting at rapid posts-per-day ratios (also known as post whoring), and the urge to waste lots of money on high end computer hardware that you dont need!” -panchoman
“Modding to me is something best shared with others.... Kind of like a fine wine, but without the drunk driving arrest and hangovers.” -MKmods
“i'm going to punch you in the face now Jesus..” -BumbleBee
theJesus is offline  
Reply With Quote
The Following User Says Thank You to theJesus For This Useful Post:
Old Feb 1, 2012, 09:58 PM   #10
theJesus
2000 Posts
 
theJesus's Avatar
 
Join Date: Jul 2008
Location: Canton, Ohio
Posts: 3,116 (1.76/day)
Thanks: 2,301
Thanked 865 Times in 612 Posts

System Specs

I can't get much past ~135 polys without it crashing (I assume due to the squares having to overlap at that point). At 128 polys it was ~1000fps
__________________
HEAT
“congratulations! you have successfully been inflicted with tpuitis! symptons include: prolonged computer usage, urge to make tpu your homepage, posting at rapid posts-per-day ratios (also known as post whoring), and the urge to waste lots of money on high end computer hardware that you dont need!” -panchoman
“Modding to me is something best shared with others.... Kind of like a fine wine, but without the drunk driving arrest and hangovers.” -MKmods
“i'm going to punch you in the face now Jesus..” -BumbleBee
theJesus is offline  
Reply With Quote
The Following User Says Thank You to theJesus For This Useful Post:
Old Feb 2, 2012, 01:27 AM   #11
theJesus
2000 Posts
 
theJesus's Avatar
 
Join Date: Jul 2008
Location: Canton, Ohio
Posts: 3,116 (1.76/day)
Thanks: 2,301
Thanked 865 Times in 612 Posts

System Specs

You have to press enter to start the simulation.
__________________
HEAT
“congratulations! you have successfully been inflicted with tpuitis! symptons include: prolonged computer usage, urge to make tpu your homepage, posting at rapid posts-per-day ratios (also known as post whoring), and the urge to waste lots of money on high end computer hardware that you dont need!” -panchoman
“Modding to me is something best shared with others.... Kind of like a fine wine, but without the drunk driving arrest and hangovers.” -MKmods
“i'm going to punch you in the face now Jesus..” -BumbleBee
theJesus is offline  
Reply With Quote
The Following User Says Thank You to theJesus For This Useful Post:
Old Feb 2, 2012, 01:58 AM   #12
Maelstrom
500 Posts
 
Maelstrom's Avatar
 
Join Date: Sep 2008
Location: VA/PA
Posts: 500 (0.29/day)
Thanks: 139
Thanked 164 Times in 121 Posts

System Specs

Quote:
Originally Posted by theJesus View Post
You have to press enter to start the simulation.
Reading comprehension fail on my part xD. I'm an idiot. Thanks though.

OK, 2nd go. At around 90 blocks the program just crashes. FPS was way above 60 when it happens.
__________________

Made by PVTCaboose1337
Maelstrom is offline  
Reply With Quote
The Following User Says Thank You to Maelstrom For This Useful Post:
Old Feb 2, 2012, 11:19 AM   #13
razaron
500 Posts
 
razaron's Avatar
 
Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts

System Specs

Added different shapes
Made the screen bigger

Next up; friction and "bounce".
__________________
My Anime List
BattleTag (EU): razaron#1882
Steam: Razaron

Last edited by razaron; Feb 2, 2012 at 11:27 AM.
razaron is offline  
Reply With Quote
The Following User Says Thank You to razaron For This Useful Post:
Old Feb 2, 2012, 11:45 AM   #14
Maelstrom
500 Posts
 
Maelstrom's Avatar
 
Join Date: Sep 2008
Location: VA/PA
Posts: 500 (0.29/day)
Thanks: 139
Thanked 164 Times in 121 Posts

System Specs

DL'ed the new version. It's entertaining, but I made it crash again, this time at only 25 polys (I had shapes flying all over the place).

Edit: got it to crash even quicker. I created 4 blocks very quickly in the same position and it crashed. It doesn't appear to know how to handle lots of stuff overlapping.

Edit 2: Yep, it is an overlapping problem. I created 7 block in the same area, pressed enter, and this happened:

Crashes if you try to create more shapes.
Granted, that's not the way you're supposed to use it.
__________________

Made by PVTCaboose1337

Last edited by Maelstrom; Feb 2, 2012 at 11:53 AM.
Maelstrom is offline  
Reply With Quote
Old Feb 2, 2012, 12:27 PM   #15
razaron
500 Posts
 
razaron's Avatar
 
Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts

System Specs

I think the crash happens because something is divided by (a number very close to) zero, lol.
For the next update I'll make it so you can't stack 3 or more shapes on top of each other.
__________________
My Anime List
BattleTag (EU): razaron#1882
Steam: Razaron
razaron is offline  
Reply With Quote
Old Feb 3, 2012, 07:48 AM   #16
pantherx12
Eligible for custom title
 
pantherx12's Avatar
 
Join Date: Jan 2009
Location: ENGLAND-LAND-LAND
Posts: 8,443 (5.27/day)
Thanks: 1,188
Thanked 1,705 Times in 1,375 Posts

System Specs

Downloading new version, is multi-core support something you will be implementing at all?

New version is a whole lot better got to 196 before the frame rate took a massive hit and then crashed.

I'd say 170 would of been above 300 fps still though.

Will retry ina bit.
pantherx12 is offline  
Reply With Quote
Old Feb 3, 2012, 04:46 PM   #17
razaron
500 Posts
 
razaron's Avatar
 
Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts

System Specs

After I've finished the physics engine I'll try offloading it to the GPU. If that fails I might make it use 2 threads. This is because the engine is for use in a game with a VERY big scope, so I'll need other threads to handle AI etc.
__________________
My Anime List
BattleTag (EU): razaron#1882
Steam: Razaron
razaron is offline  
Reply With Quote
The Following User Says Thank You to razaron For This Useful Post:
Old Feb 3, 2012, 05:26 PM   #18
pantherx12
Eligible for custom title
 
pantherx12's Avatar
 
Join Date: Jan 2009
Location: ENGLAND-LAND-LAND
Posts: 8,443 (5.27/day)
Thanks: 1,188
Thanked 1,705 Times in 1,375 Posts

System Specs

Quote:
Originally Posted by razaron View Post
After I've finished the physics engine I'll try offloading it to the GPU. If that fails I might make it use 2 threads. This is because the engine is for use in a game with a VERY big scope, so I'll need other threads to handle AI etc.
Looking forward to GPU acceleration!

Love apps that use my gpu XD
pantherx12 is offline  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Havok Physics Engine Disables Proprietary GPU Physics zekrahminator News 7 Nov 22, 2007 10:19 PM
Crackdown On Havok Physics Engine malware News 7 Feb 21, 2007 02:38 PM
Documents Leak NVIDIA's Quantum Physics Engine D_o_S News 2 Oct 5, 2006 05:57 PM
Microsoft Works on Direct Physics Engine for GPUs D_o_S News 5 Jun 21, 2006 02:21 PM


All times are GMT. The time now is 11:55 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
no new posts