# kbenderoth89

Member

8

1. ## Is this a good start?

Dude that is awesome It's GREAT to see basic programming before you graduate. I learned some python when I was 16 and it helped me a lot. Doesn't really matter what language you start with. What's most important is you have an idea about the thought process in programming and knowing what you're getting yourself into. I see too many people get about halfway through game development at full sail or art institute and not like it anymore. Java is a great introductory language. Any language that's Object Oriented is a great start. Best of luck to you
2. ## color stripes based on time

In a class I am taking, we had to create an object, make it rotate and scale (done) and have rainbow stripes moving upwards towards the Y direction as it is scaling and rotating. I was unable to get the last part done. Still passed though , but I don't believe in "good enough" so even though it's aready graded, I want to finish it and make sure that I am able to do it again if I ever need to. So I'm using FX Composer, and I set up the pixer shader to return the world location, which I know changes the color based on the location. But what I WANT to happen is create a stripe pattern full of colors of the rainbow, and they'll be moving upwards as time goes by. All I know is that it'll involve sine, cosine, and tangent. But I have absolutely no clue how that would work or why. I haven't done trig or calc related stuff in years so if someone could also explain how manipulating the sin,cos,and tan waves works also that would be awesome.
3. ## 3D scaling using sine based on time

So I'm trying to make my teapot scale properly when testing my HLSL shader effect. currently I have this: float4x4 scale = {(sin(gTime)*sin(gTime)),0,0,0, 0,sin(gTime)*sin(gTime),0,0, 0,0,sin(gTime)*sin(gTime),0, 0,0,0,1}; where gTime is the time elapsed since the program started. Basically what I want it to do is scale from about 0.5 of its original state to 1.0 (the original size) constantly. you could probably guess that what I currently have scales it from 1.0 to 0.0 is also tried using the absolute value and, well, it partially works, only the full scaling takes about 4 seconds and it takes 3 seconds before it moves can anyone help me scale it smoothly from half its size to its full size using sin, cos, or tan?
4. ## 3D scaling using sine based on time

Awesome it works and scales properly! Thanks a ton!
5. ## Best Method of Taking Notes (on a language you are learning)?

it depends. if you're making a game or something and using a new function, yeah it'd be pretty unorganized. But I found making a seperate program called "trees","Dynamically Linked Lists", etc. and include comments can be wonderful especially when doing something free.
6. ## Best Method of Taking Notes (on a language you are learning)?

Typically I just type comments in the programs when learning. Like, when I learned about the data structures like lists and trees in C++, i wrote C++ style comments about each function and step. I know that every language has a way you can insert comments in your code. I'd suggest just that
7. ## Annoying Error when trying to get height of a binary tree, weird errors.

This looks just like the problem I had when I took a data structures class at Full Sail. The problem is that you're taking in a constant but returning a reference (or vise versa) it's hard to tell since this is your BST.cpp and I can't see where you're calling it in main.cpp or wherever you do the calling. But to be honest, the best way to solve this is by switching around some constants. but yeah, whenever you see an error that says "cannot convert from (something) to (something different) it generally means you put a different object type in a parameter, or a return value is different, or something not matching a function. Like, if a function returns an integer, and you set a char pointer to it. or if the first parameter of a function takes in a string, and you give it an unsigned short. Not that extreme, but you get the point. Wish I could help more, but I'd need to see wherever you're calling getTreeheight.
8. ## Where to start to program a game

C++ was my starting language and same with a number of people I know. It isn't really difficult. And it seems to me that this is more of a rant against a language. Shouldn't really scare someone from using a language like that. I'd say take some time to check out C++ till an intermediate level is reached and see if it's the right language or not. I mean, it IS an industry standard. Almost every Game Dev related degrees in colleges are also starting with C++. Yeah C++ can be difficult, but every language have war stories. When I started with C++, in about 4 months I ended up making an Assassin's Creed version of Pong using Direct2D with animated sprites, FMOD implementation, etc. Plenty of people get through C++ as their first language and the results are very positive. Also, understanding C++ makes using C a LOT easier. Implementing C functions in a C++ program gets some nice results with the wide variety of libraries and methods. I think using it as a starter language depends on two main things: 1) how much time you have and 2) why you want to make games. Since you're 15, I'm guessing other than high school, you have plenty of free time. So maybe learn another language first, then go to C++. With enough dedication you could probably be at least Intermediate at programming before you even hit 18! And why do you want to make games? Do you want to do is as a small hobby? I've found that Java or ActionScript(Flash) are good for just making a few quick and fun games. Or maybe you want to turn this into a career? In that case consider where your dreams take you. Mine took me to the multi-platform development. In that case, I went straight to C++ (then C#, then Java, but Java was just for fun). But maybe you don't want to focus ONLY on making games for PC/PS3/360/Wii, maybe you just want PC, well then you have a much larger choice (I enjoy C#, but I'm also a lover of Object Oriented Programming), but you could make flash games or web games (Java,ActionScript,HTML5, etc) or downloadable games(C++,C#,etc). Or hey, you got some scripting under your belt at a young age, that's really impressive! I'd say be a boss and make an OS strictly for gaming using assembly language! lol.