APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Adding Texture to 3-D Sphere post and replies

Return to the Adding Texture to 3-D Sphere thread
Login to post to this thread

Adding Texture to 3-D Sphere
Anthony Zealous
2 Posts

Is it possible to use an image as a texture for a 3D object? I wish to use an image to color the surface of a sphere however when I attempt to load an image file as a texture, the sphere remains its default color. If not, what is the file format required to use as a texture?

--Cheers


Replies to Adding Texture to 3-D Sphere

Re: Adding Texture to 3-D Sphere -
lookang Avatar
lookang
245 Posts

http://iwant2study.org/ospsg/index.php/interactive-resources/physics/02-newtonian-mechanics/08-gravity/62-gravity10

This is an example of a 3d texture on the easy JavaScript simulation.

Enjoy


OSP@SG blog
OSP@SG Digital Library


Re: Re: Adding Texture to 3-D Sphere -
Anthony Zealous
2 Posts

It seems that you are doing the exact same thing, simply loading a .jpg file for the "texture 1" on your 3D sphere. When I try this, the .jpg doesn't appear and the sphere retains its default color.



Re: Re: Re: Adding Texture to 3-D Sphere -
Francisco Esquembre
237 Posts

Anthony

Please, send a zip with the sources and images for this example. There may be some peculiarity of your file and I would like to examine it. But this is standard stuff an should work just fine.

Paco



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book