A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by Julio Jerez » Fri May 07, 2010 2:07 pm
Wow I just downloaded Sketchup, it looks is so simple.
I try loading one of the SDK dae files and you are right it failed.
I will investigate why that happens.
I will export and simle Mesh and also export the same Mesh from MildShape and see what is the difference and fix the error.
I use that Goggle Earth Import option, is that the same you are using?
Those file people have donated to me and spme I made using MilShape 3d,
You game me and Idea I will see if I cna make a Google Collada Plug in. similar to teh milkshape plugin in the SDK
C:\temp\NewtonWin-2.20\toolchain\msPlugin
-
Julio Jerez
- Moderator

-
- Posts: 12452
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by gsaous » Fri May 07, 2010 2:13 pm
I tried various ways to open it..
Not only using Goggle Earth Import option, but also trying just the import from file menu but nothing good happened...
-
gsaous
-
- Posts: 22
- Joined: Sat Apr 24, 2010 2:25 pm
by Julio Jerez » Fri May 07, 2010 2:26 pm
Hold it give soem time to see why my file fail to load in Sketchup,
-
Julio Jerez
- Moderator

-
- Posts: 12452
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by gsaous » Sat May 08, 2010 5:33 am
hey, i finally made a room that can be shown in my application(i used milkshape 3d) but how can i add physics, so that the objects won't pass throught the walls???
-
gsaous
-
- Posts: 22
- Joined: Sat Apr 24, 2010 2:25 pm
by JernejL » Sat May 08, 2010 9:22 am
gsaous wrote:hey, i finally made a room that can be shown in my application(i used milkshape 3d) but how can i add physics, so that the objects won't pass throught the walls???
Look at the tutorials on the wiki on how to integrate it with your engine.
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by gsaous » Sat May 08, 2010 12:05 pm
ok, i found it, i just had some bad code and i didn't let it create the body...

-
gsaous
-
- Posts: 22
- Joined: Sat Apr 24, 2010 2:25 pm
by gsaous » Tue May 11, 2010 6:14 am
hi again!
I try to improve the movement of the objects when they are picked from the mouse. I want them to be more steady. For example, when you do a movement with the mouse and then you stop moving it, the object keeps moving on the last direction. I would like to make the movement as it is in the tutorial, where the objects follow the mouse almost perfectly with left click but having torque, and more steady without torque with right click.
Could you please tell me what should i change in the code?
Once again, thanks!! a lot for your help!
-
gsaous
-
- Posts: 22
- Joined: Sat Apr 24, 2010 2:25 pm
by Julio Jerez » Tue May 11, 2010 8:51 am
you can take the mouse function from the wiki and use it in you code.
It is a joint.
-
Julio Jerez
- Moderator

-
- Posts: 12452
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by gsaous » Fri May 14, 2010 10:34 am
In one of your demos, there is a magnet. I was wondering if there is any way to handle which objects can be attracted. depending on mass, the texture or even the shape, don't care about that...
-
gsaous
-
- Posts: 22
- Joined: Sat Apr 24, 2010 2:25 pm
by Julio Jerez » Fri May 14, 2010 11:38 am
you can do it base on what ever you want, it is all done in the function call back.
In a few day I am realizing a Tool that will make it easier to make content for Newton.
It is a work in progress but I see the as the engiene get more functional people are having a harder time making content, so I will make a graphics tool to help with that.
-
Julio Jerez
- Moderator

-
- Posts: 12452
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by gsaous » Fri May 14, 2010 12:32 pm
I can't really understand how can i do this.(sorry)
For example, i want to create a sphere magnet and i want it to attract only the shapes of the scene that have a specific texture(if that's possible, or a shape if that's more possible). How can i do that in callback function?
PS: It's true it has many functions and it's hard to make clear what each of them does!!! Especially for begginers like me

-
gsaous
-
- Posts: 22
- Joined: Sat Apr 24, 2010 2:25 pm
by gsaous » Sun May 16, 2010 4:40 am
any help pls? I can't find what i have to do in call back function..
-
gsaous
-
- Posts: 22
- Joined: Sat Apr 24, 2010 2:25 pm
by JernejL » Sun May 16, 2010 5:52 am
in forcetorque callback just apply magnet's attractive force, that's all you need.
About many functions - take a look at the wiki.
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by gsaous » Tue May 18, 2010 7:39 pm
i found that, it's true it wasn't that difficult to find, sorry.
I have one last question and i think i'm done and hopefully you'll get rid of my questions...
But this question is about wxwidgets... I hope you can help me because i've search tens of ours in tutorials but i haven;t found something that works in my case.
So, I've made an application in which the user is in a room and he can add some primitives dynamically(i have an add primitive menu where he can choose what he wants to add, i.e a sphere, a box etc.).
When the user chooses a specific primitive, he is driven to a form where he types the sizes if the primitve, the mass etc. But there is something wrong and i can't add the primitive to the world on okbutton of the second form.
The second form is a newtonframe again, only i have made a new constructor for it that creates the frame with some textboxes and two buttons.
if you can help me or propose me something on that, i would be grateful!
once again, thanks a lot for your help!!
-
gsaous
-
- Posts: 22
- Joined: Sat Apr 24, 2010 2:25 pm
by Julio Jerez » Wed May 19, 2010 12:01 pm
Well if you wait a litl I am makin a Netwon Level editor, using WxWdiget
But is is a work in progress because I am also learng wxWidget as I am doing it.
this framework will propbaly be more usefull to you and I will try to put it in a teh fris Tempale of what it will be, this weekend.
-
Julio Jerez
- Moderator

-
- Posts: 12452
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 369 guests