Texture Difficulties: Maps as solid color

Greetings,
I've recently begun developing java3d applications, and have run into a snag with my latest endeavour. I am attempting to texturemap a cylinder, and have thus far been outwitted. The texture is pulled down from the URL and laid upon the cylinder, but it appears as a solid color. I originally thought this was a RGB vs RGBA issue, but after endless musings with the constructor I'm still at a loss.
Below is a snip of my problem area. Thanks in advance for any insight. I will again remind you that I am a beginner at Java as well as 3D development so I apologize for possibly asking a silly question.
    URL url_bodyTexture = null;
    try
      url_bodyTexture = new URL("http://mrkasai.undergroup.com/agsense/images/body.png");
    catch (MalformedURLException e) {}
    // appearance of bin body
    Appearance a_binBody = new Appearance();
      ColoringAttributes c = new ColoringAttributes();
        c.setColor(gray);
        c.setShadeModel(ColoringAttributes.SHADE_GOURAUD);
      TransparencyAttributes trans =
        new TransparencyAttributes(TransparencyAttributes.BLENDED,0.4f);
      Material m = new Material();
        m.setAmbientColor(darkgray);
        m.setDiffuseColor(lightgray);
        m.setSpecularColor(white);
        m.setShininess(90.0f);
     // my nemesis:  I have changed this line many many times with similar results
      Texture t_binBody = new TextureLoader(url_bodyTexture, "RGB", this).getTexture();
        t_binBody.setEnable(true);
      TextureAttributes ta_binBody = new TextureAttributes();
        ta_binBody.setTextureMode(TextureAttributes.MODULATE);
      a_binBody.setColoringAttributes(c);
      a_binBody.setTransparencyAttributes(trans);
      a_binBody.setMaterial(m);
      a_binBody.setTexture(t_binBody);
      a_binBody.setTextureAttributes(ta_binBody);Thanks,
--Michael                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hi,
so maybe I should apply coordinates?--> you have to :) a texture can only successfully be put on an object, if there are coordinates, which describe the position, size, adjustment etc.. Texture coordinates can either be assigned to the object (for each vertex of the geometry), or to be generated automatically (in form of the class TexCoordGeneration and assigned
to the Appearance).
I would recommend you to read the manual at http://java.sun.com/developer/onlineTraining/java3d/index.html, Chapter 7 Textures. In addition I would like to suggest the use of AniFun3 to work trough the examples. In AniFun3 you can change all the parameters in dialog boxes and you will see changes on the fly - without the otherwise usual time-consuming change/compile/test procedure.
Regards,
Oliver

Similar Messages

  • How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    How can I make the background one solid color?  It is too difficult and noticeable when I use the retouch button and try to erase all the creases in my backdrop.  So, how can I have just a solid white background?

    When talking about a specific image posting the image may be useful.
    One can use a Layer Mask and add a white Layer underneath.

  • Wallpaper switch to solid color after log-out  / log-in between different user account on the same iMac

    On my iMac, i created different accounts for the member of the family. When i switch from one to an other account and go back to the first account the wallpaper change automaticly to a solid color wallpaper. I have tried all the solution described on different forum for Mac, but no one can fix the problem. This had known under 10.8, but i have hoped that will be not the case under 10.9 !

    Hi,
    This article should help you:
    Maintaining and Monitoring Account Lockout
    http://technet.microsoft.com/en-us/library/cc776964(WS.10).aspx
    Meanwhile, I would like to recommend you ask Windows Server forum for more professional help:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=winservergen
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or
    learn from your interaction with us. Thank you for your understanding.
    Karen Hu
    TechNet Community Support

  • I would like to change the colour of bars in a chart without losing the underlying default texture associated with my chosen theme. None of the 3D textured fills offered in "Chart Colors" match the textured fill of the theme. Any suggestions?

    I would like to change the colour of bars in a chart without losing the underlying default texture associated with my chosen theme. None of the 3D textured fills offered in "Chart Colors" match the textured fill of the theme. Any suggestions?

    Thanks Gary, but no, that does not work. First of all, I can't select each bar individually. When I click on one bar, all three bars are selected.
    When I use "inspector > graphic" I have 5 fill options: none, color, gradient, image, tinted image. The default selection for the theme I'm using is image. What I would like to use for my charts is the same image that this theme uses for table headers. It has the same texture as the chart, but a different colour. Using anything but image or tinted image removes the texture from the fill.
    I have found I can do one of two things. I can select tinted image from the fill selections in "inspector > graphic" or I can select 2D Image Fills from "inspector > chart > chart colors". The first choice does not allow me to match the table header colour because it only allows me to apply a tint to the existing colour and adjust its opacity. The existing colour has too much influence on the fill, so I can't find an RGB adjustment that will match the table header colour. The image selections from "inspector > chart > chart colors" do not quite match the colour or the texture. Again, I can try to tint the image, but I still can't get it to match and the texture is not the same anyway.
    The image I want to use obviously exists in the software as it is an attribute of the theme, but for some reason is inaccessible. The other angle I have tried is to edit the theme, but I can't figure out how to do that either.

  • How do I change my Desktop Picture to a solid color?

    Hello folks, I'm trying to change my desktop picture to a solid black color in Leopard. How do I do that? I went into the desktop preferences under System Preferences but under solid colors, they do not have black. And I have no idea how to add more colors to the few selections there. Can someone help me out please? Thank you.

    http://www.slashdotdash.net/articles/2006/12/19/mac-os-x-desktop-black-backgroun d-wallpaper
    That's one idea, they have a solid black .png file on there, and you can either set it as your desktop and tile it, or follow their instructions.

  • What is the purpose of the chain (lock symbol) between a solid color layer and its vector mask?

    What is the purpose of the chain (lock symbol) between a solid color layer and its vector mask in the layer panel when creating shape layers with a shape tool? I'm just curious when locking or unlocking the solid color layer and its vector mask can make a difference.

    I don't understand what you said and your shape layer looks different then mine using CS5.
    When the chain is deselected, I can't do anything with the move tool on the shape layer. This is the only difference I can find. Making the solid color uniform or not doesn't change anything.
    Your example shows that you moved the position of the solid color, how did you do that? I can create a solid color layer and change its uniform look by applying an effect like gradient but I can't move the solid color itself around. How is this possible?

  • Can't create a solid color fill layer !!

    I wonder if someone can help this PS newbie before I go insane ?
    If I create a color fill layer & want to set it to a solid yellow color I can NOT get it to change color
    no matter what I do on the color picker it remains white
    I start clicking the small circle icon ( half black / white ) & selecting solid color
    I click on the yellow bit of the vertical color bar & use the cursor to select the precise shade of yellow
    to the top right there is a small rectangle
    the color I choose - yellow - appears on the top half , the bottom half is white
    I click OK so my small box is top-half yellow, bottom half white - the layer stays stubbornly white
    shouldn't it go the color I choose ??
    Now whats driving me mad is that last week I was doing this for fun
    I had a jpeg file of a book page that I could create a highlighter pen effect by putting a yellow layer on top & sliding
    the opacity down to 20% or whatever
    I have opened one of the psd files I created & the color fill layer is yellow
    the left-side palette thumbnail is yellow
    when I edit the color the small rectangle is entirely yellow - top & bottom
    I don't know what I am doing differently or not doing that I need to do ...
    any ideas gratefully received !

    YESSSS !!!!
    sanity restored.....you, sir, are a genius.
    thankyou.

  • How can i paint a solid color from the color pallet to a new art board

    Hi
    Can any one teach me how i can just paint or pour a solid color in an blank art board.
    Steve

    Draw a box with your Rectangle Tool the size of your art board and fill that with the color you need.

  • How to create transparent text on a solid color background?

    I want to create a transparent text on a solid color backround, and I need text transparency to go all the way to through the image (i.e. do not show the solid color background). I have the transparent background layer, the solid rectangle layer that occupies part of the image, and the text layer (with text element) on the top of the solid rectangle layer. How do I make text transparency to go all the way through? Here is a similar example for Photoshop CS, only in my case, the backround layer is transparent (i.e. there is no picture): http://www.photoshopessentials.com/photo-effects/transparent-text-area/. Basically, I need to make the letters see through, so they show the backround color on which the image will be placed. Is it possible to do in Photoshop Elements? I'm using version 9 on Windows 7. Thanks.

    Thank you all for the suggestions, especially 99jon. 99jon's walktrhough is helpful, but I was hoping to find a workaround that would allow keeping transparent text that goes all the way through all other layers to transparent background as a text level, but once I flatten the image, I'd lose the text layer, so I cannot make any changes to it (like slightly change the font, size, style, face, etc). Let me clarify a bit what I'm trying to do to see if there is an even better option.
    Say, I need to have a 300x300 pixel image that (forget about photos) consists of a solid-color circle (circle can be white, black, red, blue, or any solid color, or gradient, does not matter) on a transparent background, and inside of this circle I'd like to cut out a word (say, the word "TEST" with no bevels or other decoration, just flat font) all the way to the transparent background. I just need a circle with text cut out and showing around the circle and through the word "TEST". So if a circle is white and I place the image on a blue background, the word "TEST" would be in blue (so would be the area around the circle).
    Is there a way to set it up to allow changing the color of the circle (say, from white to black, or blue, or red) and keep smooth edges of the text (and circle) blending with the background (i.e. avoid jagged edges) without redoing every color variation from scratch? Like, getting some master file which would define size and position of the elements,a s well as font, etc, and from this master file, use simple adjustments to change the color.
    Ideally (in my dream world), there would be an option for the text element to be of transparent color that would go through all layers below it. But there must be a not too complex way to do this, right?

  • In imovie, I have greenscreen clip.  First I want to change background to solid color THEN add a picture within picture.  When I try to stack all 3, I get two but not all three.....help!  thanks!

    in imovie 10.0.2, i have a green screen clip.  first i want to change background - solid color probably - but then i'd like to also add a picture within picture along side the video....have attempted to "stack" all three, and can get two out of three but not all three....what's the trick?  thanks!

    In iMovie you can only do two at a time. So the work-around would be to do the green screen/change background color part. Then Share this. Then import this piece back into an event. Then add the picture in picture.
    In Final Cut Pro X, you could easily do what you are describing.
    The main reason is that iMovie does all rendering in one pass. Final Cut Pro X allows multiple renders as you go along, so you can do much more complex effects.

  • Solid color text boxes in MS Word are not importing to pdf

    Solid color text boxes in MS Word are not importing to pdf ... text boxes with pics import and convert fine. Using Word 2013. Any ideas?
    I'm brand new to the forums, so sorry if I'm not asking correctly or asking something already covered.

    Hi Sara!
    Thanks for the response.
    I'm uploading a Word file to my Adobe PDF Packet Annual subscription. I'm running Windows 8.0. Normally I will create a document in MS Word 2013, save it into our dropbox and then when I need to send it to someone (printer in this case) I will log onto Adobe PDF and upload the file to convert. Once it's converted, I'll send the pdf to the client or printer. In this case I created a poster with our logo (in a text box), text, a star (in a text box) and a few solid colored rectangles. Everything converted beautifully - as usual - except the solid text boxes.
    I've used Adobe PDF Packet for a few years and have never seen this. Any ideas or other questions?
    thanks, Dave

  • IBook flashing solid colors and goes black.  Can anyone please help?

    Hi there,
    My 14-inch iBook has been flashing solid colors (green, red, blue, three different kinds of white) before going black for about a minute, and then start flashing again. I tried restarting repeatedly, and sometimes the normal screen would appear for about 1 minute before flashing colors again.
    Can anyone please help?
    iBook G4    

    Most likely its a problem with your logic board, specifically, the video memory. Apple has admited to this problem for the G3 ibook after a class action lawsuit was filed. My ibook, a g4 933mhz, which was made shortly after the computers that were part of this lawsuit has the problem. I stupidly paid apple $300 to fix the problem, because they told me that as long as the damage was not caused by me, then it could be fixed for $300. After i paid them and they shipped the laptop to their repair center, they called bacl to say that my logic board was damaged because i had spilled something on my keyboard, and that it would cost $700 to fix. I told them to ship it back, and of course they charged me $300 for nothing. I then tested the keyboard and inspected the laptop for this alleged "water damage" and found nothing. Apple offered no recourse to dispute their findings, and said that there were no problems with my laptops logic board that they were responsible for, despite the online petition having been signed over 700 times. They said that i could pay them an additional $70-$80 to have the apple store take my laptop apart and verify the water damage, and that it didnt guarentee anything, it would just make my case for demanding that the laptop be repaired stronger. Also, even though they orginally said that i had spilled something on the keyboard to cause the damage, when i told them that the keyboard was functioning, they said that i must have placed the laptop in water.
    Here is the link to the online petition http://www.petitiononline.com/ibookg4/petition.html . Good luck with your laptop, obviously, unless yours is still under warrenty, i dont recommend sending it to apple for repairs. I should also note that they did originally think that my laptop was part of the problem batch when i brought it to the store, but after they checked the serial number and determined that it was not, then mysteriously the damage was caused by me, and they pocketed my $300.

  • In photoshop, how do you make a background a solid color?

    In photoshop, how do you make a background a solid color?

    Select all then edit fill is one way.
    However if you mean the background behind a subject you need to separate the subject from its background the change just the background.  Look for tutorials on replacing background and extracting subjects

  • How do I get a solid color border?

    I have made a seperate layer for a border.  When I fill it with a color, it has blurred edges and is not a solid color.  I have checked the opacity settings and they are at 100%.  What am I doing wrong?

    If you have several layers, combine the layers. To do that, open a blank layer at the top of the stack, and press CTRL+SHIFT+ALT+E
    Go to Select>all
    Open a blank layer above the layer created in step #1
    Go to Edit>Stroke(outline)selection. Select color, width, and position inside

  • I am getting a grid like pattern over solid colors durring a disolve

    I recently upgraded to Studio. When a sequence dissolves, especially to white, I am seeing a grid like pattern. I have also noticed this pattern in shots where there is a solid color in one location for a period of time. Any ideas?
    G5   Mac OS X (10.4.9)  

    Check your view options in the canvas or viewer pulldown menu (little radio button looks like a pill in the top center-right or either window.) Sounds like you have your background set to checkerboard 1 or 2. That grid is telling you there is nothing to be seen here. Set it to black if you want it black. This won't take away the fact that there is transparency mind you, it just shows transparency as black. You can choose white, as well.

Maybe you are looking for