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
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
3D Game Programming – Episode 15 – Textures + More!
by admin on May 29th, 2012
Tags
Share
Comments (22)






HELP. My code is the same but when i debug i cant see the floors only the FPS counter!
ok i fixed it just forgot to refresh the project lol
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 ……
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!
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.
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?
Is anyone else’s render distance limiter not limiting it as well as Yan’s? I don’t know where I went wrong
Its A Jumping Castle
Dude these vids are awesome!
it wasnt 2-3 weeks… i watched this after upload so its only been actually like 30 seconds XD
The rotation doesn’t work correctly, it just stretches on the y axis.
Awsome tutorials!
I had no idea that was a gradient tool an Paint.NET
Brilliant tuts! Keep it up
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;
The texture class is returning -1 for some reason.
Im getting a negative pixel i dont understand.
Is there a way to make the floor texture more high res?
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.
Post the picture with a link please? Thanks mate.
UPLOAD CAKE !!
Pretty cool! I hope you can upload cake.