![]() |
|
|
#1 |
![]() Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts
|
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" Last edited by razaron; Feb 2, 2012 at 11:25 AM. |
|
|
|
|
|
#2 |
![]() Join Date: Sep 2008
Location: VA/PA
Posts: 500 (0.29/day)
Thanks: 139
Thanked 164 Times in 121 Posts
|
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 |
|
|
|
|
|
#3 |
![]() Join Date: Jul 2010
Location: Near Canterbury, uk
Posts: 1,889 (1.79/day)
Thanks: 634
Thanked 562 Times in 453 Posts
|
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
|
|
|
|
|
|
#4 | |
![]() Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts
|
Quote:
Also, pressing the R key resets the simulation. |
|
|
|
|
|
|
#5 |
![]() Join Date: May 2011
Location: USA
Posts: 166 (0.23/day)
Thanks: 95
Thanked 33 Times in 16 Posts
|
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. |
|
|
|
|
|
#6 |
|
Eligible for custom title
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
|
When I get to around 70 polys I get a massive performance hit.
System specs <-- |
|
|
|
|
|
#7 | |||
![]() Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts
|
Quote:
Quote:
Quote:
This is probably because I've coded it in Java 1.7 (then ran it using Java 1.7). |
|||
|
|
|
|
|
#8 | |
![]() Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts
|
Quote:
E.g. Change java to "C:\Program Files\Java\jre7\bin\java.exe" |
|
|
|
|
|
|
#9 |
![]() Join Date: Jul 2008
Location: Canton, Ohio
Posts: 3,116 (1.76/day)
Thanks: 2,301
Thanked 865 Times in 612 Posts
|
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
|
|
|
|
| The Following User Says Thank You to theJesus For This Useful Post: |
|
|
#10 |
![]() Join Date: Jul 2008
Location: Canton, Ohio
Posts: 3,116 (1.76/day)
Thanks: 2,301
Thanked 865 Times in 612 Posts
|
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
|
|
|
|
| The Following User Says Thank You to theJesus For This Useful Post: |
|
|
#11 |
![]() Join Date: Jul 2008
Location: Canton, Ohio
Posts: 3,116 (1.76/day)
Thanks: 2,301
Thanked 865 Times in 612 Posts
|
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
|
|
|
|
| The Following User Says Thank You to theJesus For This Useful Post: |
|
|
#12 |
![]() Join Date: Sep 2008
Location: VA/PA
Posts: 500 (0.29/day)
Thanks: 139
Thanked 164 Times in 121 Posts
|
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 |
|
|
|
| The Following User Says Thank You to Maelstrom For This Useful Post: |
|
|
#13 |
![]() Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts
|
Added different shapes
Made the screen bigger Next up; friction and "bounce". Last edited by razaron; Feb 2, 2012 at 11:27 AM. |
|
|
|
| The Following User Says Thank You to razaron For This Useful Post: |
|
|
#14 |
![]() Join Date: Sep 2008
Location: VA/PA
Posts: 500 (0.29/day)
Thanks: 139
Thanked 164 Times in 121 Posts
|
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. |
|
|
|
|
|
#15 |
![]() Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts
|
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. |
|
|
|
|
|
#16 |
|
Eligible for custom title
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
|
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. |
|
|
|
|
|
#17 |
![]() Join Date: Apr 2008
Location: london
Posts: 608 (0.33/day)
Thanks: 170
Thanked 185 Times in 140 Posts
|
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.
|
|
|
|
| The Following User Says Thank You to razaron For This Useful Post: |
|
|
#18 | |
|
Eligible for custom title
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
|
Quote:
![]() Love apps that use my gpu XD |
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
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 |