- Forums
- Forum Help
- Search Forum
- Login
- Register
Truevision3D
>>
TV3D SDK
>>
TV3D SDK 6.5
(Moderators:
Waterman
,
Mithrandir_
,
beyonder
,
ZaPPZion
) >>
Simple physics sample
Pages: [
1
]
« previous
next »
Print
Author
Topic: Simple physics sample (Read 1127 times)
Valcriss
Customers
Community Member
Posts: 146
Simple physics sample
«
on:
June 26, 2007, 02:09:19 PM »
Like i was playing with physics, i made a little sample...
ScreenShot
Download it here :
http://indealsoft.com/modules/download_gallery/dlc.php?file=7
Logged
Hope you understood my english.
Indealsoft
ShiZZa_AuX
Customers
Community Member
Posts: 100
Simple physics sample
«
Reply #1 on:
June 29, 2007, 03:55:33 AM »
Played with your render loop a little bit to make it run smoother. The ball was like blinking around the screen. Thought that to be a little odd. It felt like the ball was on 2400bps connection playing quake. Reason i moved manageinputs out is because once we start rendering we want to finnish it asap. Text calls should also be called last not in the middle. And i have no clue why but it got even better when i changed the simulate to not be based off AccurateTimeElapsed. I assume that do to the fact that accurate time is based off time between frames that, it also has to do with frame rate being above normal. Aka over 50 fps, this sample runs in the 1500 fps mark on one of my machines. I have yet to play with phyics but i learned alot from your code. Anyone else have insight on this call to Simulate? I have been wanting to play with it myself.
_scene.SetBackgroundColor(0, 0, 0);
while (_doRender)
{
ManageInputs();
_engine.Clear();
// _physics.Simulate(_engine.AccurateTimeElapsed());
_physics.Simulate(.1f);
_scene.RenderAll(false);
_scene.FinalizeShadows();
DrawText();
_engine.RenderToScreen();
Application.DoEvents();
}
Logged
Valcriss
Customers
Community Member
Posts: 146
Simple physics sample
«
Reply #2 on:
June 29, 2007, 05:48:25 AM »
Thx for reply ShiZZa_AuX, i will update my sample project ASAP.
Logged
Hope you understood my english.
Indealsoft
SylvainTV
Administrator
Community Member
Posts: 4946
Simple physics sample
«
Reply #3 on:
June 29, 2007, 06:00:18 AM »
Normally you have to update with _engine.AccurateTimeElapsed() / 1000.
Since the update step is in seconds
Logged
Regards
Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com
TV3D IRC at
http://chat.truevision3d.com
or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Valcriss
Customers
Community Member
Posts: 146
Simple physics sample
«
Reply #4 on:
June 29, 2007, 07:27:55 AM »
Thx Sylvain,
I have updated my sample using ShiZZa_AuX and Sylvain's comments, and set physic's values to something more realistic i think.
Logged
Hope you understood my english.
Indealsoft
rogangriffin
Customers
Community Member
Posts: 13
Visual Basic 6 Physics sample
«
Reply #5 on:
October 10, 2007, 03:44:40 PM »
I converted that Physics sample over to VB6 if anyone is interested:
Download it at:
http://www.freegames.byethost13.com/physics.htm
Logged
SylvainTV
Administrator
Community Member
Posts: 4946
Re: Simple physics sample
«
Reply #6 on:
October 10, 2007, 05:12:22 PM »
Don't forget you can upload samples in the resource section of the site !
We will approve them and then they will be always on this site and not lost and spread on 43543 sites eh
Logged
Regards
Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com
TV3D IRC at
http://chat.truevision3d.com
or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Truevision3D Official Information
-----------------------------
=> Development Information
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.3
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Game Development
-----------------------------
Projects
-----------------------------
=> In-Development
=> Showcase
=> Recruitment
=> Announcements
-----------------------------
Truevision3D Official Information
-----------------------------
=> News and Announcements
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.5
-----------------------------
Game Development
-----------------------------
=> Engine Comparison
-----------------------------
TV3D SDK
-----------------------------
===> Shader Development
===> Content Pipeline
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Companion Tools
=> Design and Theory
Powered by SMF 1.1.3
|
SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks