Newton Raycast Vehicle.

Share with us how are you using the powerrrr of the force

Moderator: Alain

Newton Raycast Vehicle.

Postby Dave Gravel » Mon Nov 17, 2008 5:54 pm

Here a little demo.
http://orionx3d.googlepages.com/Basic_N ... ehicle.zip
The vehicle control is not 100% what I like to get but I work on this.
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://www.facebook.com/dave.gravel1
http://orionx3d.googlepages.com/
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 690
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: Newton Raycast Vehicle.

Postby JernejL » Mon Nov 17, 2008 6:53 pm

that's outright awesome work, i just wish you had a better camera.. too bad the car spins out of control very fast.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1441
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Newton Raycast Vehicle.

Postby Dave Gravel » Mon Nov 17, 2008 6:57 pm

Yes I know about the spinning effect, I think I need to scale down the force when it rotating.
I need to have a better speed reduction force system too, I have correct the steer but it's not ok with the speed force.
It's the times to start to make more tests (:
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://www.facebook.com/dave.gravel1
http://orionx3d.googlepages.com/
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 690
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: Newton Raycast Vehicle.

Postby JernejL » Mon Nov 17, 2008 7:14 pm

How hard would it be to adapt your car for my little top-down game? i didn't see all your raycast car code, but it is extensive, i don't know.. basically you think if i made a cut-down version of what you have for my game it would work well?
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1441
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Newton Raycast Vehicle.

Postby Dave Gravel » Mon Nov 17, 2008 7:17 pm

If you make a personal jointdll it's can come a lot more simple and very easy to implement.
I can help you for this if you don't know how, it's not so hard
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://www.facebook.com/dave.gravel1
http://orionx3d.googlepages.com/
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 690
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: Newton Raycast Vehicle.

Postby Julio Jerez » Tue Nov 18, 2008 12:03 am

Oh Darm :twisted: :mrgreen: :shock:, awesome.
75 cars at 270 fps steady.
I was making a raycast car for beta 18, but I am no too happy with it.
can you share your class, whith the aprentices?
Is thsi using teh basic Raycast, or di you make your own form scratch?
wow so many quetsions.

The only thing this one needs is a bit mof tweaking on the sliding friction at high speed.
everythoing else is quite impresive tip my hat to Master K00m . :mrgreen: :mrgreen:
Julio Jerez
Moderator
Moderator
 
Posts: 10954
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton Raycast Vehicle.

Postby Leadwerks » Tue Nov 18, 2008 12:16 am

Could you make a DLL with your own vehicle command set for us beta testers to use?
User avatar
Leadwerks
 
Posts: 515
Joined: Fri Oct 27, 2006 2:54 pm

Re: Newton Raycast Vehicle.

Postby Dave Gravel » Tue Nov 18, 2008 12:20 am

I don't have modify the real newton raycast vehicle.
I have only add the export in the jointdll to make it usable with my engine on delphi.

This demo don't apply real torque, I use a cheat force.
The vehicle acceleration is made with the AddForceAtPos apply on the vehicle body.

AddForceAtPos(Body,speedvec,oxV3Make(RayCastBasicVehicle[0].AbsolutePosition[0],
RayCastBasicVehicle[0].AbsolutePosition[1]-0.095,
RayCastBasicVehicle[0].AbsolutePosition[2]));
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://www.facebook.com/dave.gravel1
http://orionx3d.googlepages.com/
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 690
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: Newton Raycast Vehicle.

Postby Sury » Wed Nov 26, 2008 12:52 pm

Sounds interesting, will try it as soon, as i get home on my computer.
BTW, I'm working on a racing game using my own raycast vehicle and a ancient version of Newton.
if you are going to open the source of your vehicle, that will force me to release a demo of mine as soon as possible to proof the world i didn't steal your code ! :lol:
Good work as always. Keep us updated, please.
User avatar
Sury
 
Posts: 193
Joined: Sat Aug 14, 2004 5:32 am
Location: Bulgaria

Re: Newton Raycast Vehicle.

Postby Dave Gravel » Wed Nov 26, 2008 2:33 pm

The code is already open, it is write by Julio and it is present in the beta 17.
You can steal any code in my demos or in my oxNewton component,
anyway it is write for help other oxNewton users and i'm not here to start a war about code that I show in public.
If you don't like to share your code it's your choice, but I don't request it from my part.
I prefered to use newton stuff when it exist already.

I have already seen some video from your raycast vehicle and it is cool, but it's not really what I request.
Your surely better to show it to people that requesting it...

PS:
You have nothing to proof to me make it sure in your mind.

Edited:
I have forget it make already 2 or 3 times that you say,
"I show a little demo code soon" and nothing it's all times the same historia (: hehe.

Have good coding times...
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://www.facebook.com/dave.gravel1
http://orionx3d.googlepages.com/
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 690
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: Newton Raycast Vehicle.

Postby Sury » Wed Nov 26, 2008 3:49 pm

I thought, if someone puts a "lol" after a sentence they don't want to be taken seriously. And despite of the type of the project, i gave what i got to the people who asked me, back then. sort of selective open source :lol:

It's nice to to talk with you, but will try to keep on toppic.
I just tried your project and crashed on start with message "External exception : C000001D", then the OpenGl render window showed up, but there were 2 boxes abd everyting was frozen.
But don't worry ,the problem is on my side, i know it. I have problems with latest Newton demos on my home PC.
User avatar
Sury
 
Posts: 193
Joined: Sat Aug 14, 2004 5:32 am
Location: Bulgaria

Re: Newton Raycast Vehicle.

Postby Julio Jerez » Wed Nov 26, 2008 3:56 pm

easy, easy I think "steal was used in the context of a joke".
Beleive we all have language barriers in this forum, I have being crusified for asking question on other forums.
Maybe we shuld call it the Babel forum. :D :D

anyway I will try to finish my elusive ray cast car, :oops: :oops:

The template joint in the beta is unfinish, and for peopel like mater KOOm, who had a great deal of experience, is eassy to continue from there.
Hey some time I find myselft trying to figure out how Master Koom get things done uisng the engine.
Master Koom bring a lot of experience from using physics engine, so for him physics modeling is eassy.
Julio Jerez
Moderator
Moderator
 
Posts: 10954
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton Raycast Vehicle.

Postby Dave Gravel » Wed Nov 26, 2008 4:09 pm

Don't take all of my word's so seriously,
My english is very bad and it don't out all times on the good sence that I try to make it out Hehe.
Sorry if the message seen like aggressiv,
Like I have say I really don't try to start a war and I don't have any preference about any personne or project.
I use only physics like a hobby and general physics is my fun game in life, and in same time I let's others people use my work.
About the error if you have a ATI video card it's possible that coming from the 3d engine that I use.
It have a bug with ATI card and when I have build the demo I have forget to patch this bug.

Sorry if something is wrong on what I have say take me like a Joker.
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://www.facebook.com/dave.gravel1
http://orionx3d.googlepages.com/
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 690
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Re: Newton Raycast Vehicle.

Postby Sury » Wed Nov 26, 2008 4:13 pm

No, my card is nVidia - GF5500. Will try it on my work computer tommorow. It's a great machine and has a fresh install with service packs and stuff.
User avatar
Sury
 
Posts: 193
Joined: Sat Aug 14, 2004 5:32 am
Location: Bulgaria

Re: Newton Raycast Vehicle.

Postby Dave Gravel » Wed Nov 26, 2008 4:15 pm

Ok yes normally it's suposed to work, Nvidia don't have this context creation bug only with ATI card.
Thanks.
You search a nice physics solution, if you can read this message you're at the good place :wink:
OrionX3D Projects & Demos:
https://www.facebook.com/dave.gravel1
http://orionx3d.googlepages.com/
https://www.youtube.com/user/EvadLevarg/videos
User avatar
Dave Gravel
 
Posts: 690
Joined: Sat Apr 01, 2006 9:31 pm
Location: Quebec in Canada.

Next

Return to User Gallery

Who is online

Users browsing this forum: No registered users and 1 guest

cron