iYogi

Need help with your laptop? Call Toll Free @ 1-877-889-6859
Is your laptop overheating? Don’t worry we have highly qualified techs to fix all your laptop problems. Call Today!
http://www.fix-laptop-problems.com

Filed under: Computer

3D Game Programming – Episode 15 – Textures + More!

by on May 29th, 2012

Tags Share Comments (22)

Episode 14: www.youtube.com Welcome to a series of videos where we will create a 3D game (probably a first person shooter) from scratch, using just the included libraries in Java 1.6. If you have any questions or problems, leave a comment or send me a message, or tweet at me. Java API Documentation! docs.oracle.com In this tutorial: How to draw text to the screen How to add textures Tell me if you want more! Twitter: twitter.com Facebook: facebook.com Livestream: www.twitch.tv

Related Articles
Leave a Comment »22 Comments
  • Reply » brendanr00lz4 May 29, 2012

    HELP. My code is the same but when i debug i cant see the floors only the FPS counter!

  • Reply » MegaXHD May 29, 2012

    ok i fixed it just forgot to refresh the project lol

  • Reply » MegaXHD May 29, 2012

    errh i trying to load a 16 by 16 image instead i have also changed
    pixels[x + y * width] = Textures.floor.pixels[(xPix & 7) + (yPix & 7) * 8];
    to ,
    pixels[x + y * width] = Textures.floor.pixels[(xPix & 15) + (yPix & 15) * 16];
    i cant think of anything else end i get no errors like on the side with the actual code just when i try to run it the game crashes ……

  • Reply » ltfighter96 May 29, 2012

    could someone help me i get a black screen when i launch the “game” with the new textures, but the FPS counter still shows up D: help!

  • Reply » piemaker16 May 29, 2012

    I fixed it, if anyone else gets this issue try continuing on with the series and see if it fixes by the end of episode 17.

  • Reply » piemaker16 May 29, 2012

    For some reason the movement is now inverted (except for left/right rotation). How can i fix this my code is the same as his, i think? What could have caused this?

  • Reply » MrTh3G3n1us May 29, 2012

    Is anyone else’s render distance limiter not limiting it as well as Yan’s? I don’t know where I went wrong

  • Reply » LavaAndVsjat May 29, 2012

    Its A Jumping Castle :D 

  • Reply » CarlsGamePlayVidz May 29, 2012

    Dude these vids are awesome! 

  • Reply » MrJrensky May 29, 2012

    it wasnt 2-3 weeks… i watched this after upload so its only been actually like 30 seconds XD

  • Reply » x86tutorials May 29, 2012

    The rotation doesn’t work correctly, it just stretches on the y axis.

  • Reply » patroclos09 May 29, 2012

    Awsome tutorials!

  • Reply » CoderShare May 29, 2012

    I had no idea that was a gradient tool an Paint.NET

  • Reply » Blackopsplayer123 May 29, 2012

    Brilliant tuts! Keep it up :D

  • Reply » LeePrototype May 29, 2012

    yes, this should be able top be achieved by changing the section in Render3D.java called pixels[x + y * width] = “Texture.floor.pixels[(xPix & 7) *+ (yPix & 7)] * 8;

    to make it higher res, have a higher res square image such as 16×16 or 32×32 and change the * 8 at the end to the corresponding image resolution eg 16×16 would = *16; and 32×32 image would = * 32;

  • Reply » Jbirdscape2011 May 29, 2012

    The texture class is returning -1 for some reason.

  • Reply » Jbirdscape2011 May 29, 2012

    Im getting a negative pixel i dont understand.

  • Reply » TommorrowAt11 May 29, 2012

    Is there a way to make the floor texture more high res?

  • Reply » Danmansonman May 29, 2012

    Im not sure if it occurs in the future episodes, or if it’s ok to do so, but i noticed the rendering is smoother when the mouse movements code is moved into the Ticked() method.

  • Reply » mrkevin223 May 29, 2012

    Post the picture with a link please? Thanks mate.

  • Reply » nwafefe May 29, 2012

    UPLOAD CAKE !!

  • Reply » noobian458 May 29, 2012

    Pretty cool! I hope you can upload cake.

Get a GravatarLeave a Reply

Name: « Required

Email Address: « Required

Website URL: « Optional