is it harmful, how much if it is it, to just start experimenting with code?
I knew absolutely nothing two months ago, but looking at examples, and watching an as3 coder work with away3d, helped me understand some things. I look at vectors, imagine that stuff in space and I know what’s needed to get an angle, a distance, and how to get it. Shaders make perfect sense since they are more or less straightforward, i see it as lines and lines of equations. I looked at some AGAL examples and saw how they shift variables from one register to another depending on the size and I think that I’m getting a good idea of what is happening under the hood. What I want to say is, shaders seem confined, the rendering happens after the entire game logic did, and it seems like a pretty straight forward process from there on.
I still get very confused with calling other scripts, types, etc. and I understand that it’s the basics of CS that I lack. But when I started reading a book on Java, the author jumps into calling classes and extending classes with pretty abstract examples, and I can’t make heads or tails from it. Working in 3d however helps me explain exactly what is going on, and makes way more sense of code. I was wondering if i’ll have to undo some damage by doing things the way I am now?
Here is what I was able to muster in a couple of days after a bit of experimentation. I was able to organize arrays so to split these sub meshes within a mesh. The new ngons that get generated are being generated within the same mesh, the coordinates are pretty abstract, i just increment x,y,z in a certain way, and do no math on the cpu. Once sent to the vertex shader, it constructs the pattern, and deforms it.
Procedurally generated mesh
This worked, but I struggled for another three days to assemble the GUI and wire it to the other stuff, which ended up being a few lines of code and I’m still not quite sure what i’ve done to fix the meshes from leaking into the scene which was causing a crash. The counters i’m using to loop through the arrays are probably a huge mess.
I bought “c# 5.0 in a nutshell” and “Mathematics - for 3d game programming…”. I guess the bottom line question would be, should I stop playing so much in unity and specific problems, before I go through an entire c# book?