Results 1 to 1 of 1
  1. #1
    jaykay4321 is offline Member
    Join Date
    Jul 2014
    Rep Power

    Default Java3D: Setting vertex colors of geometry

    I wrote this Java3D program to graph a 3D equation. I made an IndexedTriangleStripArray to represent the graph and can draw the shape fine. But when I try to set the colors of the IndexedTriangleStripArray individually, the colors of all the vertices ends up being the first color I set in the array. I have attached the part of my code that actually makes the graph(graph.txt) and the full source code(grapher.txt) to the post.
    Attached Files Attached Files
    Last edited by jaykay4321; 08-01-2014 at 12:15 AM.

Similar Threads

  1. draw Geometry Shapes
    By Madhan in forum New To Java
    Replies: 5
    Last Post: 05-10-2014, 08:22 AM
  2. draw Geometry Shapes 2
    By Zeptune in forum New To Java
    Replies: 1
    Last Post: 05-09-2014, 10:57 PM
  3. Setting different colors to objects
    By FOX427 in forum Java 2D
    Replies: 3
    Last Post: 04-13-2012, 07:52 AM
  4. Vertex and AdaptablePriorityQueue?
    By santa in forum New To Java
    Replies: 0
    Last Post: 03-10-2011, 06:26 PM
  5. Button click for drawing geometry shape
    By nnur in forum AWT / Swing
    Replies: 5
    Last Post: 05-15-2010, 07:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts