General Category > General Anim8or Forum
WEEHEEEE oh, oh wait its dead, I thought it was dancing (CRE8OR NOTICE)
cooldude234:
Yea I was just trying to see if I can eliminate another use of an if statement, but however presenting that you are using one, I guess I'll just stick to the one I am using (it may not be noticeable difference in speed, if you eliminate one if statement, but over time you can see a difference).
Thanks music waters, you've help me eliminate one problem.
So since I can't embed useful things into my signature, (there's not even enough space to put a simple smile), I'll have to continue telling you what I am currently working on in the form of a post.
First off, getting angles completely working now, I'm able to do a lot more now.
Also I finally decided to incorporate the very not so hard distance formula (I was really lazy to put it in, but its finally in), so now you can use the function getDistance (pointA, pointB) and it will return a number equaling the distance. This incredibly helped a lot to my surprise, as I now have the basis for dynamic cloth and rope simulation. It's a little glitch however because I haven't incorporated centripetal force yet, but AM WORKING ON IT!
Also I can display things that are in a (proper) distance, unlike before it was just checking if things were in range by a square (which looked terrible).
I also got a efficient cube (environment) reflection done, and a few other cheesy looking reflection that look cool if done properly.
I've been also learning more about simulating physics, I might make my own physic functions, or might use just use bullet for the final thing (cause bullet is still awesome), but I still want to learn more about 3d calculus and other things for my own sake of learning.
To davdud101, somehow I over looked your post and didn't see it, well if you read this far you'll know the basis for cloth and rope physics have started to be implemented, as for other soft body physics why not, making a cube jello-y like is actually a lot simpler than cloth physics, in my opinion that is. It's when it comes to physically contacting a surface and moving or rotating in a realistic manner that become the hard part.
Mess distortion, well I was going to have some why to be able to edit the vertices of an object (still have to figure out how I want to make it call a specific vertex), which then you could create a set of variables (an array of them) to store positions or properties of them, so you could store the colour (damnit Firefox, don't tell me you think colour is spelled wrong) of one vertex, oppose to the whole object.
Because of rope physics being in, inverse kinetics are now a possibility, that is once I get bones in.
Also I have been working on the scripting part of the new cre8or some more. Figured out ways to make it run faster, to call different scripts and more. However I still haven't figured out how to make it possible to be able to create new variables on the fly in a script (I could make it stacked based, but that's the ONE MAJOR THING I HATE ABOUT SCRIPTING LANGUAGES!!! I never want to lean towards the stacked based scripting language EVAR!! <- purposely spelled like that :P
Sorry for the long post, I just needed to tell you whats been done the last week-ish or so time that has passed. Also somehow I am failing school because of my English, but yet I corrected the teacher many many times already. Questioning on how that works.
Water Music:
You're welcome, just make it awesome for me. You actually can get it all into one formula without an if statement, but it's ugly, unreadable, and probably won't end up saving you any cycles.
Yaw=((dz-|dz|)*pi/4dz)+((-1*((dz-|dz|)/dz))+1)*sin^-1(dx/sqrt(dx^2+dz^2))
edit: oops, scratch that. It'll give a DIV0! error along the x-axis
I think that's right, but I haven't done much error checking. Basically I've included a weird negative/positive if statement into the formula. But I doubt it works any better on a machine level so I'd keep it the way you have it.
My degree was actually in English (by way of physics) but I'm afraid that the only advice I have to offer on that score is to make a habit of asking your teacher for help on a paper/project before submitting it. That will always net you a higher grade just because your teacher would rather give you a higher grade rather than admit that they couldn't offer any actual assistance. Sad but true. The internet is destroying the English language anyway.
cooldude234:
--- Quote ---The internet is destroying the English language anyway.
--- End quote ---
LOL... oops :P
I think the get angle function, that I have now, may just be the best I will ever get it, I might make it better, but for now its definitely good where it stands.
When I get around to it I'll make a screen shot showing off some of this stuff (lot of it has to do with motion, so I might put it in a animated gif format)
I'm thinking of adding in shaders, though that isn't compatible with older hardware, I would have to add in a on/off switch for it. To be able to enable and disable shaders, would allow older hardware to use the fixed function pipeline (if equivalent to the shader), in that case, shaders would have to be considered a addition, rather than a dependence, if not then the game you made with the engine and the new cre8or would have to be considered incompatible with older hardware.
cooldude234:
--- Quote from: cooldude234 on January 24, 2012, 09:57:20 pm ---I could make it stacked based
--- End quote ---
Sorry, I meant to say Heap based, stacked based shrinks and grows, STACK based is a constant sized chunk of memory just for the application.
cooldude234:
Well I decided to ignore all the crap with trying to make variables work in the scripting part, and decided to stop being lazy and implement fonts already.
So yes I got the basics in for fonts.
FOR NOW, I'm doing what cre8or did, and use texture fonts.
Basically they're just a texture, or an image of the letters and ascii thingies.
Then I take that texture and I take the string (the line of text), and I print out the right letter on the texture, for the right letter in the string of text. I'm printing out each of the letters as an individual sprite on a quad (a square), so that they can be printed to the screen or in the 3d world.
I'm going to make some functions and properties for the text such as colour and things.
I also might make them changeable in the string itself
eg.
this is {color=pink} Red {/color} etc. etc.
I'll make the syntax shorter than that though (also I borrowed it streight from this for, as the [ was just swaped with { :P )
I also want a length property in, so you can make the text continue onto another line once it reaches a maximum length (good for making paragraphs and text boxes)
SCREENSHOTS
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version