OpenGL (SDL,C++) tutorial 14 - simple 3D FPS camera (part 3).avi

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,754
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Link to this comment:

Share to:

Uploader Comments (thecplusplusguy)

  • I have tried to add ambient light to the scene, but nothing happens.

    The back side of the monkey is completely black whatever I do.

    How, and where do I set up the ambient light?

    The code in your earlier video doesn't work for this project.

  • @BlueByteGames

    Hi, the problem most likely, is that in your material (exported from Blender), the ambient is 0,0,0, you can change that manually, by go to your mtl file, and change the Ka line number higher than 0.0 0.0 0.0 (1 is the maximal light), plus the code, from the earlier lighting tutorial should do the trick.

    Or you can set the ambient light in Blender, like:

    wiki(DOT)blender(DOT)org/index­(DOT)php/Doc:2.4/Manual/Lighti­ng/Ambient_Light

    (replace the dot with .)

  • @thecplusplusguy Thank you! I think I got it to work :D

    Btw, how is your FPS game going? Looking forward to see more from that project ^^

  • @BlueByteGames

    Hi, the FPS game is the same I haven't worked on that, I've already made the first few tutorial, but I don't want to upload those, until I have all.

    Lately I'm learning the GLSL (the tutorial subject after the FPS game), and I hope, I can put together the two, to increase the realism with per-pixel lighting, shadows...

    I'm sorry, that the tutorials stopped (since the FPS game, any time I started to make it, I didn't enjoy it and the result wasn't too good I hope that will change)

  • im a 13 year old c++ programmer and i am making a 3d game how would i draw an image(gun) in the window and move it as the player moves[like modern warfare and battlefield3]

    thanx in advance...

    cgmwgb138~~

  • @cgmwgb138

    Hi. Actually I have an FPS game project, just go to my channel, and (currently) the last video should be it. In the video's description you can download the whole project. To answer your question, you only have to go back to the 0,0,0 location, and draw the weapon modell there (glLoadIdentity()).

    At home you cannot make an as professional game as BF3 or COD MW3, these games made by handreds of professionals.

    (And one more thing: try to understand the code)

see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • very very good

  • function.cppp and uh objectloader.cpppp LOL I love how you say that its proper funny

  • @thecplusplusguy

    Thank you i do understand the code and thank you i know i cannot make a game like bf3 or cod mw3 but i wish to make a game like minecraft almost with the hand that you can see thank you for the advice

    cgmwgb138~~

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more