Beta release 1.9.5b
Moderator: Moderators
- jph_wacheski
- Posts: 1005
- Joined: Sat Feb 16, 2008 8:10 pm
- Location: Canada
- Contact:
WhooHoo, wicked awesome! This will save loads of time working with the editor,. and these new scripting additions look amazing as well,. for loops in the code editor is one I had been missing,.
can i get a quick explination of these; Pre/post increment/decrement syntax for local variables: "i++; ++i; --i; i--;"
what is the difference between pre and post?
kattle- your idea sounds intreguing, got any new simple primitive like stuff for me to play around with? I can always use new ways to build / add to models,. you know me insects and robots are my faves,. I will eventually get back to that 100 Spokes idea we where playing with,. just have to figure out how your rendering transformation works,. made me a bit confused :S so i put it aside for a bit,. I still think there is a game there,. peace
can i get a quick explination of these; Pre/post increment/decrement syntax for local variables: "i++; ++i; --i; i--;"
what is the difference between pre and post?
kattle- your idea sounds intreguing, got any new simple primitive like stuff for me to play around with? I can always use new ways to build / add to models,. you know me insects and robots are my faves,. I will eventually get back to that 100 Spokes idea we where playing with,. just have to figure out how your rendering transformation works,. made me a bit confused :S so i put it aside for a bit,. I still think there is a game there,. peace
iterationGAMES.com
Pre increment: the variable is incremented BEFORE the expression is evaluated.
Post increment: variable is incremented AFTER expression is evaluated:
EG:
i=5; j = ++i; the value of both i and j is now 6.
i=5; j = i++; now j is worth 5 and i is worth 6;
Post increment: variable is incremented AFTER expression is evaluated:
EG:
i=5; j = ++i; the value of both i and j is now 6.
i=5; j = i++; now j is worth 5 and i is worth 6;
In the fall of 1972 President Nixon announced that the rate of increase of inflation was decreasing. This was the first time a sitting president used the third derivative to advance his case for reelection.
-=Hugo Rossi=-
-=Hugo Rossi=-
I guess the way to do this is to create a MeshCombine-component that behaves consistently with BitmapCombine. That way you would do a producer-list like this:kattle87 wrote:When a mesh producer is added, it does not overwrite the array of triangles, but instead it adds triangles to the array, so in the end we can get a single complex mesh instead of using several meshes in the "OnRender" component
MeshBox
MeshExpression
MeshBox
MeshExpression
MeshCombine
That is, put two warped cubes on stack and combine them to a single mesh for faster rendering.
I'll think about that, but first I will probably make this beta a proper release if no bugs are reported.
Hi Ville,
Not exactly a bug, but something I did notice .. integers take about double the time to access then floats. Usually when working in for example C, it's the opposite. Does the script compiler pull the assignments out in floats, then truncates them and assigns them to the integer type memory slots? In any case, performance issues can always be addressed at a later stage.
K
Not exactly a bug, but something I did notice .. integers take about double the time to access then floats. Usually when working in for example C, it's the opposite. Does the script compiler pull the assignments out in floats, then truncates them and assigns them to the integer type memory slots? In any case, performance issues can always be addressed at a later stage.
K
Hej Ville,
Ah, you are right. When using local variables integers are the same if not faster then floats. However, when you're using integers defined with the DefineVariable Component ( I use this allot to pass around variables ), the results are a bit different*. Here's a example .. which ironically doesn't differ much from yours
K
*The difference is even greater when you just use X<100000; instead of Count.
Ah, you are right. When using local variables integers are the same if not faster then floats. However, when you're using integers defined with the DefineVariable Component ( I use this allot to pass around variables ), the results are a bit different*. Here's a example .. which ironically doesn't differ much from yours

K
*The difference is even greater when you just use X<100000; instead of Count.
- Attachments
-
- Versus.zgeproj
- (1.12 KiB) Downloaded 529 times
- jph_wacheski
- Posts: 1005
- Joined: Sat Feb 16, 2008 8:10 pm
- Location: Canada
- Contact:
Jph, it works for me now when I try. Both Circle2D vs Circle2D, and Circle2D vs Rect2d_OBB with stop setting. That is it "works" exactly like before, objects stop but they sometimes get stuck. Can you please post more details?
Kjell, with your example on my computer ints are about 5 times faster than floats. But as soon as there are conversions involved it becomes slower. As far as I know int/float conversions are slow even with C++ compiled code. The general rule is that unless your whole expression is without conversions (watch compiler details for (int) or (float)) you might as well stick to floats for most variables to avoid conversions.
Kjell, with your example on my computer ints are about 5 times faster than floats. But as soon as there are conversions involved it becomes slower. As far as I know int/float conversions are slow even with C++ compiled code. The general rule is that unless your whole expression is without conversions (watch compiler details for (int) or (float)) you might as well stick to floats for most variables to avoid conversions.
- jph_wacheski
- Posts: 1005
- Joined: Sat Feb 16, 2008 8:10 pm
- Location: Canada
- Contact:
the bug.
There may be an ordering bug.
Try the attached; no stoping.., then reverse the DefineCollision Cat1 and Cat2 values,. i.e Cat1=2 and Cat2=1 and then it works,.
Try the attached; no stoping.., then reverse the DefineCollision Cat1 and Cat2 values,. i.e Cat1=2 and Cat2=1 and then it works,.
- Attachments
-
- Circle2D_VS_OBB.zgeproj
- test proj
- (2.7 KiB) Downloaded 517 times
iterationGAMES.com
Jph, it turns out that this is a general problem with stop-collisions, not just for the new Circle-style. You need to define collisions in the order moving-objects vs stationary-objects for it to work, such as Player vs Walls. Since this is not a new bug I'll go ahead and release the beta then come back to hopefully fix the problem later. Can you use it the way it is now?
- jph_wacheski
- Posts: 1005
- Joined: Sat Feb 16, 2008 8:10 pm
- Location: Canada
- Contact:
no problem,.
yup,. in fact I have developed a method using Steering components that is working well,. demo soonish,. . if you do go back to look into that issue perhaps a "MoveOutside" addition would help,. as the Stop one seems to steal all momentum,. MoveOutside would keep the objects from overlaping while maintaining velocity in the direction it could still move,. .
perhaps it's not a bug and you can just add that info the the wiki,. so people don't pull hair out! Thanks again.
perhaps it's not a bug and you can just add that info the the wiki,. so people don't pull hair out! Thanks again.
iterationGAMES.com