Newton 2.0x Archemedia Open Beta

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Re: Newton 2.0x Archemedia Open Beta

Postby Sascha Willems » Tue Dec 29, 2009 12:13 pm

Ah, thanks for that link. Seems like it totally changed, but after adopting the changes shown in the wiki I now get the correct pointers :)
User avatar
Sascha Willems
Moderator
Moderator
 
Posts: 346
Joined: Fri Aug 27, 2004 10:18 am
Location: Germany

Re: Newton 2.0x Archemedia Open Beta

Postby shybovycha » Thu Dec 31, 2009 11:51 am

Merry Christmas and happy New Year to all of you! =)

I wish you lots of happiness and less bugs in your projects!

And i'e got one question: is it possible to make demos separate? 'cause it's a little hard to understand, which lines of code i must use and which - not to make HelloWorld + Newton application...
Image
User avatar
shybovycha
 
Posts: 52
Joined: Fri Oct 23, 2009 6:15 am
Location: Poland

Re: Newton 2.0x Archemedia Open Beta

Postby Julio Jerez » Thu Dec 31, 2009 12:38 pm

Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton 2.0x Archemedia Open Beta

Postby shybovycha » Fri Jan 01, 2010 5:06 am

Well, sorry, i've forgot to look into /doc/ sub-dir... =P
Image
User avatar
shybovycha
 
Posts: 52
Joined: Fri Oct 23, 2009 6:15 am
Location: Poland

Re: Newton 2.0x Archemedia Open Beta

Postby shybovycha » Sun Jan 03, 2010 6:06 pm

One more question... Maybe even a feature request... Vector mathematics in Newton 2.0 is pretty weak. More feature-reach vector library would be a very nice option in version 2.0 =)
Image
User avatar
shybovycha
 
Posts: 52
Joined: Fri Oct 23, 2009 6:15 am
Location: Poland

Re: Newton 2.0x Archemedia Open Beta

Postby Julio Jerez » Sun Jan 03, 2010 7:07 pm

I beleive that as simple as it is it containt all of the funtionality of any Matrix/Vector Class file.
I have being using it for more tha 15 years in diffrnet flavors .

what function would you like in the vector.Matrix class?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton 2.0x Archemedia Open Beta

Postby shybovycha » Sun Jan 03, 2010 7:24 pm

Newton 2.14 (or which one is for linux). Newton/dMath/dVector.h . dVector class has no, for ex., 'length'-like methods. Or !=, == operators... It's pretty bad.

You said Matrix? No... I need just 3D vector =)
Image
User avatar
shybovycha
 
Posts: 52
Joined: Fri Oct 23, 2009 6:15 am
Location: Poland

Re: Newton 2.0x Archemedia Open Beta

Postby Julio Jerez » Sun Jan 03, 2010 8:21 pm

Thsoi efuntion are already for example leng teh teh equabelet of

Code: Select all
dvector p
lenght = sqrtf (p % p);

one of the reason I do not add operaore liek ==, != and so on is that you can always argue that == will require a tolerance, but then you run into the how small teh tolerance should be?
those are the kind of function that report different result when compiled in debug and in release mode, i liek to state away from those.
I only provide funtion that are unmbigues, bu the the beauty of CPP classes is the you can reuse then and make when you want, for example

Code: Select all
class MyVector: public dVector
{
     //  add the funtion you need here.
     bool operator ==

}
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton 2.0x Archemedia Open Beta

Postby shybovycha » Mon Jan 04, 2010 3:56 pm

tutorials in Newton 2.13+ really must be rewritten...
And now (for ex.) i can choose one of two cases: use Newton with almost no mathematical module (i mean that it's very simplified... even too simplified) but easy-in-use.
Hmmmm.... It's really difficult to find good software nowadays =(

Edited by Julio.
Image
User avatar
shybovycha
 
Posts: 52
Joined: Fri Oct 23, 2009 6:15 am
Location: Poland

Re: Newton 2.0x Archemedia Open Beta

Postby Julio Jerez » Mon Jan 04, 2010 4:16 pm

I edited your post, Let us state on the Newton Library.

Like I said Newton Math Class is not meant to be part of Newton, I use it for making the demos.
(as interesting note is the same class I use to build the Netwon Library itself, the only diffence is that it is called dgVector, instead of dVector to avoid conflicts when using lib linking)

If you want to use Vector class for your own porpuse an dyou ante more funtionality, you can defive form teh dVcetor and add what you need.
if you post the class deffinition tah you want I can feill in teh funtion for you if you want.
you can design your class like this
Code: Select all
class MySuperVector: public dVector
{
    //... do al eth contutior hete

   // functions I want to have  ( julio will feel the code)
    dFloat Lenght () const ;
    dFloat Mag2 () const;
    bool operator == (const dVector& argement) const;
    //...
 

};


To tell you the truth you are one of the very few people how use the Newton SDK Math Library,
most people already have thier Own and prefect to use thiers, but if you want I can fill the missing pieces for you.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton 2.0x Archemedia Open Beta

Postby shybovycha » Mon Jan 04, 2010 4:56 pm

Julio Jerez wrote:I edited your post, Let us state on the Newton Library.


Ok, i was just comparing =)

In few words, i mostly need !=, == and length (or distance from one vector to another). This is the basis for every maths module. I use Newton maths because i don't wanna "spray" my application between many libraries/modules (you know, when you app uses newton, opengl/glut/like that, sfml, enet, fmod and so on, it is already some kind of trouble: it's hard to orient in code; code becomes "dirty"/"hard-to-read-and-reuse"). I use Newton not only for physics, but for camera movement too. Physics for now is just a movement for character. I've created walls with box collision shape and now trying to read (yeah, not implement, but read) about character controller in Newton 2. Documentations is taken from 1.53 version and has a lot of mistakes, so i've decided to try copepasting some demo code blocks.
Last edited by shybovycha on Mon Jan 04, 2010 6:45 pm, edited 1 time in total.
Image
User avatar
shybovycha
 
Posts: 52
Joined: Fri Oct 23, 2009 6:15 am
Location: Poland

Re: Newton 2.0x Archemedia Open Beta

Postby Julio Jerez » Mon Jan 04, 2010 5:09 pm

Alright I will post a modified class for you. tonight, I can not do it now.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Newton 2.0x Archemedia Open Beta

Postby shybovycha » Mon Jan 04, 2010 5:21 pm

Ok, thanks a lot! =)

For purpose: documentation update is really critical... Or you can just make lots of tutorials (separate, not one demo) and pack them into one .CHM file and call it Documentation =) For example, i need only basic rigid body creation (mesh, box, sphere), character controller and maybe some raycast tutorials for now. It will be little harder me to make sample code block work properly in my app, but i'll do my best and possibly will make few "tutorials" for my collection (if nobody else wouldn't do it before me) =)
Image
User avatar
shybovycha
 
Posts: 52
Joined: Fri Oct 23, 2009 6:15 am
Location: Poland

Re: Newton 2.0x Archemedia Open Beta

Postby kallaspriit » Tue Jan 05, 2010 5:16 pm

shybovycha wrote:Hmmmm.... It's really difficult to find good software nowadays =(

If you don't like it then go find some "better" library :roll:

I would like to see a software package where you get such quick and good support directly from the creator of the library, even if you pay a ton of money for it..
kallaspriit
 
Posts: 216
Joined: Sun Aug 14, 2005 6:31 pm

Re: Newton 2.0x Archemedia Open Beta

Postby Julio Jerez » Tue Jan 05, 2010 6:31 pm

kallaspriit wrote:
shybovycha wrote:Hmmmm.... It's really difficult to find good software nowadays =(

If you don't like it then go find some "better" library :roll:


It is alright not all of us have the same programing level skills, I am sure "shybovycha" excell at some other skill we can only dream be as good as he is.
I for example am good at solving logical problems but I am a moron when it come to art and design.
some time I wish it have some artistic talent to put together those wondeful level meshes I see people can do so eassilly.

so I do no hold it against "shybovycha" that he does not knwo at this time he can add those funtions to the class so eassiylly, it something he will learn on time.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests