Applying a texture to an OrientedShape3D object?

greetings,
i am having problems applying a texture to an OrientedShape3D object. i am following the "recipe" and related examples in the j3d tutorial's chapter 7 on textures. my image is a 32x32 gif file that i want to texture onto an OrientedShape3D object that has 4 vertices:
the "face" vertices for the OrientedShape3D object are:
0.0f, 2.0f, 0.0f,
0.0f, 0.0f, 0.0f,
2.0f, 0.0f, 0.0f,
2.0f, 2.0f, 0.0f
the color for the "face" is red:
1.0f, 0.0f, 0.0f,
1.0f, 0.0f, 0.0f,
1.0f, 0.0f, 0.0f,
1.0f, 0.0f, 0.0f,
the texture vertices are:
0.0f, 1,0f,
0.0f, 0.0f,
1.0f, 0.0f,
1.0f, 1.0f
as i wrote my code follows the tutorial's recipe whereby i a create an OrientedShape3D, then the textured appearance, and then i apply that appearance to the OrientedShape3D object.
when the shape is rendered i do not see the image. rather i see a color from the image but that color occupies the entire face. if i use the texture loader object to, say, scale the image then i see a rendering behavior that looks like the image is folded on itself similar to the problems the tutorial says will happen if the texture vertices are not correct.
when i do not apply my textured appearance to the OrientedShape3D object the behavior is ok - the face of the shape is always oriented towards my eye, and remains red, as i rotate, scale, and translate the object..
i'd really appreciate any help. thanks in advance!
pgm...

When you import a 3D object into Photoshop it has to be UV mapped meaning that there will be a JPEG referenced by the material file associated with the object. When you load the object, it is the JPEG which is actually a Texture layer. You can't access it with the 3D tools active but either before or after you apply the 3D adjustments you can double click on the specific texture layer which opens in a new window and then use any of the normal 2D painting/editing tools. When you save the changes to that file it will be applied to the model.
Try opening a couple of the sample 3D models in the Goodies folder on the Photoshop install disk. Most do have JPEGs associated with them which means you will have an editable texture layer but one (at least) called Simple Robot I think has only a .mtl file which means you will see color and placement, perhaps a bump map, but there is no UV texture, just a procedural made inside the 3D app. Those aren't editable in Photoshop nor can you add a texture layer. A 3D model either has one which you can edit or it doesn't.

Similar Messages

  • Applying a texture to 3d object

    Hi can anyone tell me how to apply a texture to a 3D object in photoshop CS3 extended? I can't figure it out?

    When you import a 3D object into Photoshop it has to be UV mapped meaning that there will be a JPEG referenced by the material file associated with the object. When you load the object, it is the JPEG which is actually a Texture layer. You can't access it with the 3D tools active but either before or after you apply the 3D adjustments you can double click on the specific texture layer which opens in a new window and then use any of the normal 2D painting/editing tools. When you save the changes to that file it will be applied to the model.
    Try opening a couple of the sample 3D models in the Goodies folder on the Photoshop install disk. Most do have JPEGs associated with them which means you will have an editable texture layer but one (at least) called Simple Robot I think has only a .mtl file which means you will see color and placement, perhaps a bump map, but there is no UV texture, just a procedural made inside the 3D app. Those aren't editable in Photoshop nor can you add a texture layer. A 3D model either has one which you can edit or it doesn't.

  • How to apply image texture to imported shape

    This is regarding applying am image texture to an object.
    I am able to apply an image texture to a Sphere.
    Sphere mySphere = new Sphere(1.0f, Sphere.GENERATE_NORMALS | Sphere.GENERATE_TEXTURE_COORDS, 10,appear);
    objRoot.addChild(mySphere);
    But when i import a model from a file(.obj), and apply the texture to the imported objects,
    the image is not displayed as texture but a color similar to the image is displayed.
    How to apply image texture to imported objects?

    Mylenium, thanks for your response but unfortunately I'm still missing something here. I have two problems:
    1. I don't understand how to size the logo to only cover a small portion of the golf ball. Because of the other problem I'll describe in 2) below, I simplified my test by trying this on a basic PS sphere. I loaded the logo image into the diffuse texture but it wraps the sphere. I tried editing the texture thinking I could fix it by using Transform scale, but that is greyed out. So, how do I cause the logo to apply to a small portion of the surface (as a traditional golf ball logo would appear)?
    2. Perhaps the bigger issue here is when I attempt to do this with the golf ball 3ds model instead of the PS sphere, the wrapped logo appears to be sitting somewhere between the outer surface of the ball and the inner core. In other words, the wrapped logo has a very sporadic appearance where it shows up in some dimples but not others. It isn't just applying to the surface of the ball. Thinking this might have been a problem with the .3ds model I acquired an .obj golf ball from a different source but it exhibited exactly the same problem.
    I'm experienced with PS and 3D in a couple of other programs, but new to 3D in PS. I appreciate your help with this.
    Jerry

  • How do I apply a texture to an imported .stl file in 3D Picture Control?

    Hi, I'm trying to apply a 2D image as a texture to an imported .stl file in 3D picture control. It works fine if I'm using a standard shaped mesh created in LabVIEW, however is there a way in which a texture can be applied to an imported model that isn't a standard shape, in my case a balloon. I've attached the an image of the Sub vi where I apply the texture. The object just shows up as a flat colour. Do I need to define how the image is applied to the mesh due to it being a non-standard shape? If so, any pointers would be appreciated.
    Many thanks.
    Oh, I'm using LabVIEW 2009 SP1.
    Attachments:
    stl texture problem.jpg ‏60 KB

    Apologies, been trying all afternoon and then a couple of minutes after posting, I figured it out. Using a property node for the Scenemesh reference, I set the property TextureGenMode to Spherical and it appears to now display the texture on the mesh.

  • How do I apply a texture to a text field's fill area?

    Hi all, first post and all that!
    I've seen that it's possible to format a specific bit of text in a text field with:
    setTextFormat(format:TextFormat, beginIndex:int = -1, endIndex:int = -1):void
    I need to format a section of text by applying a texture to the rectangular fill space around the letters. (Imagine in Microsoft Word that you've written a short sentence and you highlight it. Then you fill the text background with a colour. Then imagine that that colour is a single repeating texture. That's what I'm trying to achieve.) Note that the text field must be multiline, and I'm not looking to fill the whole rectangular text field area. The applied texture needs to fit to each character.
    Is this possible in Actionscript?
    Would I need to use some kind of HTML or CSS formatting?
    Is it possible at all?
    If it is possible, is it possible to change the size of the fill area around the text?
    Thanks all!

    Actually, that's pretty much what I'm looking for. For anyone else reading this thread:
    http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001279.html
    That'll fill an area with a repeating texture. The tricky bit now is to work out a top left coordinate for each line of text, and the length of each line in pixels (based on the sum of the character widths). I'll have a poke around and see if there's a way to get that information back from a movie clip.

  • Applying a texture to a triangle - and have the texture shrink/scale

    I'm hoping to find a way to apply a texture to an arbitrary triangle while having the texture scale to fit inside the triangle.
    Imagine taking an Image (the texture) and defining three points (a,b, and c). Then imagine creating Polygon where you define points d, e, and f. I'd like to paint the texture such that points a/d b/e and c/f align. To do this the texture would need to be scaled appropriately
    I've done this sort of task using OpenGL and I think doing it with the 3D libraries in Java would be possible. But for this application I need to do it in 2D
    any tips?
    thanks!
    -CG

    Hmm... I don't think there's anything in the standard API that can skew/stretch in a non-linear fashion, you may have to roll your own. Unless someone else already has, and you can get hold of the package.
    db

  • Want to apply poster edges to a smart object layer, but Filter Gallery is greyed out?

    Working a Photoshop tutorial on an image.  I want to apply poster edges to a smart object layer, but Filter Gallery is greyed out.  Filter Gallery is also greyed out for all other layers in this project.  (PhotoShop CC)

    Hi Filter Gallery,
    Please click on the image tab at the top and choose mode from 16bits/channel to 8bits/channel.
    Then check if the filter gallery is still grayed out.
    Thank you for posting on Adobe Forums.

  • Is it possible to find out if the over print is applied for other than 100% black  object?

    I need to find out the over print is applied for other than 100% black objects in "illustrator cs3" through programmatically. Kindly advice me.

    Anyone please

  • Noob Question - Applying a texture to text layer

    I've tried searching for the answer, but probably just don't know the right keywords to use, but how do I apply a texture (image) to only show up over a certain layer such as a text layer?  Meaning I want the texture to only show over the text and not anywhere else.

    Use the texture layer as a track matte for the text layer.

  • Apply texture on an 3D object

    Hi,
    I have a 3D scanner that outputs 3D model (STL file) as well as texture for that model (PNG file). I'm able to open the STL file in Labview (as mesh object), but I don't know how to plot texture on the mesh, because Apply Texture.vi doesn't work (at least not correctly). However, I'm able to apply the same texture on a simple sphere (see the attached example), therefore I don't understand why it's not working for my mesh.
    Any help is greatly appreciated. Also the example is attached.
    Attachments:
    3DPicture.7z ‏3677 KB

    Now, I think that you probably want to show your 'hand' on top of your points. Then, although STL doesn't have Texture information, once you read into LabVIEW, you can manipulate the mesh to generate the missing infomation.
    The Texture is specified by two parameters S and V. They correspond to the Horizontal and Vertical coordinates (normalize between 0 and 1) of the picture that will be use inside the triangle. So, I noticed that you want to see your hand 'projected' to the points measured. Also, I noticed that the X, Y position is 'similar' to the location of your picture, so I just tried to map the X and Y points (ignoring Z) into the S and V parameters. I also noticed that your dimensions were way bigger than the picture, so I normalized the X,Y,Z coordinates. Then, by applying a those two transformations, I was able to get this:
    Now, I also noticed a relationship between the size of the picture and points, so that is the reason I tried 'eye ball' it. Also, I have to flip the picture vertically to match the inicial points.
    Notice also that your measurements have several points that are not in the hand, so probably you'd want ot clean those points and also remove points that are 'off' the hand (probably errors).
    In short, the trick in using textures and meshes is to map the part of the picture you want to map into your object (in your case, the triangles). If you look into the shipping example: "C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Graphics and Sound\3D Picture Control\Using Meshes.vi", you will see how meshes work with textures.
    Would this work for you?
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments
    Attachments:
    STL and JPEG examples with texture.vi ‏41 KB
    hand 2.jpg ‏60 KB

  • How to apply image (logo) to imported 3ds object?

    I have a 3ds model of a golf ball I purchased. It imports properly into my Photoshop CC. I haven't been able to figure out how to apply an image (my logo) to the surface of the golf ball. Also, the golf ball has a dimpled surface so I will want the image to follow the contours of the ball, as if it would look if the logo were painted onto a real golf ball.
    EDIT: Also, I want to keep the golf ball as a 3d object so I can animate it in a scene.
    Thanks, Jerry

    Mylenium, thanks for your response but unfortunately I'm still missing something here. I have two problems:
    1. I don't understand how to size the logo to only cover a small portion of the golf ball. Because of the other problem I'll describe in 2) below, I simplified my test by trying this on a basic PS sphere. I loaded the logo image into the diffuse texture but it wraps the sphere. I tried editing the texture thinking I could fix it by using Transform scale, but that is greyed out. So, how do I cause the logo to apply to a small portion of the surface (as a traditional golf ball logo would appear)?
    2. Perhaps the bigger issue here is when I attempt to do this with the golf ball 3ds model instead of the PS sphere, the wrapped logo appears to be sitting somewhere between the outer surface of the ball and the inner core. In other words, the wrapped logo has a very sporadic appearance where it shows up in some dimples but not others. It isn't just applying to the surface of the ball. Thinking this might have been a problem with the .3ds model I acquired an .obj golf ball from a different source but it exhibited exactly the same problem.
    I'm experienced with PS and 3D in a couple of other programs, but new to 3D in PS. I appreciate your help with this.
    Jerry

  • Applied 55% transparency to group of objects, but a placed .eps file is darker than things created natively in InDesign

    hey guys,
    I'm working on a math book and for some reason, my placed .eps files (which are used for equations) are appearing darker than the other items when set to 55% opacity. I've ensured that everything is set to 100% opacity before grouping, then grouped and set to 55%. My only thought is maybe the eps is RGB when the other things are CMYK...and if this is the case, I'm not sure how to test / fix it. Other than that idea, I have no clue as to where to begin in addressing this issue.
    The cheese is real with this example.
    You can see here that I'm applying the 55% opacity to the entire group. I've also ungrouped all of the objects, made sure they're at 100% opacity, then grouped and set to 55%.
    You can see here that the text is 100% black.
    Thanks!

    Sorry, I Googled around a bit, but not quite sure what you mean by distilling the PDF. I've exported the PDF as a "High Quality PDF", and the issue still persists there. Should I alter the PDF export options some?

  • Add multiple textures to a collada object

    Hi,
    I am trying to add textures and materials to a collada object. My problem is, that the collada-type only has one property for textures as a "string".
    I need to know whether it is possible to add multiple texture files to a single collada object and - if it is - how to add them.
    Thanks and regards,
    Marc

    Hello Marc,
    in the backend the VBI application object has a method GET_INITIAL_ZIP_ARCHIVE. This method returns a Base64 encoded ZIP archive including an XML file and all required resources, e.g. DAE-Files. This ZIP archive needs also to include the Texture with the right path relative to the DAE-Files.
    When calling this method you can specify additional resources to be added to the archive via table IT_ADDITIONAL_RESOURCES. This table holds resource entries with a name and the binary content. I checked it and you can just add the path to the name:
    - Texture.jpg will be in the root of the ZIP archive
    - Image/Texture.jpg will create a sub folder Image and place the texture there
    Best regards,
    Uwe

  • How can I apply a timestretch to different null objects and then use them to parent layers?

    I am using several hundred stills which are held on screen for different lengths of time. Is there a way to create null objects with various timestretch values and then use them to parent my stills?
    I'm trying to find an equivalent to the 'paste attributes' function in Final Cut Pro.
    Thanks in advance
    A

    If you have movement on the stills you can set up expressions based on in and out points. That's what I do. I then drop all my stills in order into a comp then set the out point for all stills for the longest duration. I then set group colors for layers that I want to make different lengths, do a group select and then adjust the out points for those layers. When I'm done I sequence the layers using the keyframe assistant.
    The other way I work is to use an audio track with markers for timing. I have an expression that reads the markers and sets opacity for the layers based on pairs of markers. The motion is also controlled by expressions. That's an even faster way to set up an animated slide show.
    The last way I work is just to set in an out points for all layers, sequence the layers, use expressions to do the motion and then use time remapping on a pre-comp to adjust the timing of the slide show. All methods are quick and easy.
    Here's a fly in bounce and then drop out fxx preset that will give you an idea of how expressions based on in and out point work for slide shows. You just drag the layer to it's resting position, apply the animatiokn preset and the layer flys in, bounces, and then drops out the bottom of the comp. Works in 2D and 3D space.

  • Apply Random Color to Group of Objects

    Hello all, thanks for taking the time to help.
    Here's my issue... lets say I have 600 different objects in illustrator (just little circles with a fill color, no stroke) and 6 different colors that these circles should be. That means, I'd like about a 100 to be one color, 100 another color, etc... Is there anyway to select all 600 and just tell Illustrator that I have these 6 colors and I want to apply them to the selected objects randomly?
    Let me know if this is confusing... hopefully there is some option to do this. I don't want to apply them manually...
    Thanks!

    Rats. The [none] (no-color) swatch is stubborn.
    I was able to remove the [registration] swatch from the mix by making sure it's at the head of the palette and adding a (If swatchIndex>1) test to the script. But I can't get rid of the [none] swatch no matter what I do. Illustrator must treat it as a special case so that it cannot be referred to by index number.
    Help, James!
    One other thing: Not for nothing, but...
    lets say I have 600 different objects in illustrator (just little circles with a fill color, no stroke) and 6 different colors that these circles should be. That means, I'd like about a 100 to be one color, 100 another color, etc.
    ...is not exactly the same thing as...
    select all 600 and just tell Illustrator that I have these 6 colors and I want to apply them to the selected objects randomly
    What you want is a uniform distribution of those six colors but in no discernible pattern. That's not true random assignment, and this script won't get you there even if got the unwanted swatches out of the mix.
    No obvious solution here.

Maybe you are looking for