Jump to content

  • Log In with Google      Sign In   
  • Create Account

Nanook

Member Since 12 Apr 2006
Offline Last Active Sep 23 2014 07:57 AM

#5177635 Did I begin learning late?

Posted by Nanook on 02 September 2014 - 05:14 AM

I started when I was 25.. Studied for 3 1/2 years and have now worked for Cisco for 4 years.

 

Its never too late. Never let anyone push you down like that. Its just them showing their insecurities. Don't let it affect you. If programming is a passion for you you'll get good at it, just give it time :)




#5120894 float unlimited increasing rotation or use a if

Posted by Nanook on 03 January 2014 - 08:04 AM

You are approaching programming the wrong way. Start by getting yourself some books on C++ and follow their advice. Start programming some simple games. Read more. Then when you start making more advanced games it might be natural to think of these kind of optimization (It probably wont be necessary though). By that time your Celeron CPU will be dead.

 

People on here have a lot of experience so do yourself a favor and listen to their advice.




#5116187 Making an object accessible by other classes

Posted by Nanook on 11 December 2013 - 06:55 AM

Its better to send in your dependencies to the constructor of the class that needs to use the class than using singletons.

 

As the users of the class would not be a graphics devices its wrong to use a base class.. its not a "is a" relationship




#5017086 can python be used to create professional games

Posted by Nanook on 03 January 2013 - 07:11 AM

EVE Online uses Stackless Python




#5016694 I have two functions that do the same thing. Which one is faster?

Posted by Nanook on 02 January 2013 - 08:02 AM

Please read a book about C++. You are calling a METHOD (as opposed to function). A method belongs to an object. Therefore, you can access a pointer to object you are calling your method from using keyword 'this'. So you can write

 

 

I did read a book but I started getting confused so I started making this game so I could get some experience in order to understand the book better. This was a really helpful post thank you.

 

If the book got you confused you probably want to write something less complex than a game ;) If its a decent intro book it should have exercises you can work with.. The book will give you answers to all these questions and a lot more and you will understand it on a much better level.




#4987932 Things that are "bad" to do, but go unnoticed

Posted by Nanook on 08 October 2012 - 04:07 AM

Start reading books.. They will teach you alot about how to do things right.. Read forums.. use chat.. join a project or start one with a friend or someone online..

Whenever you are unsure of some piece of code, post it on the forums here and describe what you are thinking and ask for suggestions for improvements.

Its always a good idea to start on a project thats possible to finnish. Then its easier to keep the motivation and focus.

You'll never know how to do everything 100% correctly. Keep coding and you'll continue to learn untill you die ;)


#4954915 Should I go with directX or openGL

Posted by Nanook on 02 July 2012 - 08:42 AM

dont write your own engine.. write your own game ;) When you have your game you can extract good parts into an engine when you make your next game..

If you're just starting out as a programmer you might want to consider some 2d lib instead of using ogl or dx right away as you will progress faster to make your first game.. I havent used any of them as I started with ogl at university, but others could help with that or it shouldn't be to hard to find some info.

If you still want to go with an API you probably want to start with opengl.. Its easer to get help and its an easier interface to start off with..


#4932648 How should I resize a directx 11 window?

Posted by Nanook on 18 April 2012 - 06:47 PM

With OpenGL I just resize the window with MoveWindow, change the viewport with glViewport and update the aspect ratio of my camera's frustrum.

With DX11 it seems to be some more stuff that needs to be done..

When I setup my context I set the resolution for the depth stencil, swap chain and viewport.. I know I can resize the swap chain and set a new viewport, but do I need to create a new depth stencil or can I resize it aswell?

When I try to resize the swap chain I get the error below.. does it mean every buffer I've loaded to the GPU? vertex/index buffers, texture buffers, shaders, etc ? So if I've deleted it from normal memory I would need to load every thing up from files again?

DXGI Error: Swapchain cannot be resized unless all outstanding buffer references have been released.


PARTNERS