Results 1 to 2 of 2

Thread: vrml extrution problem

  1. #1
    Chillie in here j.o.s.h.1408's Avatar
    Join Date
    Dec 2005
    Location
    a place called home
    Posts
    8,543
    Thanks
    757
    Thanked
    256 times in 193 posts
    • j.o.s.h.1408's system
      • Motherboard:
      • ASUS P6T Delux
      • CPU:
      • Intel core i7 920 @ 3ghz
      • Memory:
      • 3GB DDR RAM
      • Storage:
      • 1TB Samsung F1, 500GB Seagate baracuda + 320gb Seagate PATA +150GB WD PATA
      • Graphics card(s):
      • EVGA 480GTX SC edition
      • PSU:
      • Seasonic M12 600W Module PSU FTW
      • Case:
      • Lian Li PC-A7010B (the rolls royce of pc cases)
      • Operating System:
      • vista ultimate edition and windows xp
      • Monitor(s):
      • 22inch 2005FPW dell monitor
      • Internet:
      • 24mb BE There Broadband

    vrml extrution problem

    Hi i was wondering if you can help me. Im trying to extrude a triangle shape using vrml and the problem with my code is that some of the sides do not appear unless i rotate the scene. its has if some sides of the shape are hidde, i.e. back-face culling i think its called:

    Anyways here is the code im working on:

    Code:
    ########################the front roof#####################################
    		
    
    
    	Shape
    	{
    	    appearance Appearance
    	    {
    		material Material
    		{
    		    
    		}
    
    		texture ImageTexture
    	        {
    			url "floor.jpg"
    		}
    	    }
    
    	    geometry IndexedFaceSet
    	    {
    		coord Coordinate
    		{
    			point
    			[
    				# buttom
    				0.0 15.0 0.0,
    				40.0 15.0 0.0,
    				40.0 15.0 30.0,
    				0.0 15.0 30.0,
    				
    				#middle part
    				0.0 30.0 15.0,
    				40.0 30.0 15.0,
    
    
    
    
    			
    				
    				
    				
    				
    				
    				
    			]
    		}
    	
    		coordIndex 
    		[
    			#buttom
    			0, 1, 2, 3, -1, 
    
    			#front
    			0, 1, 5, 4, -1,
    
    			#right
    			1, 2, 5, -1,
    
    			#back
    			2, 3, 4, 5, -1,
    			
    
    			#left
    			0, 3, 4
    			
    			
    
    			
    
    			
    		]
    	    }
    	 
    	}
    Here is what it looks like from the code above:



    And this is what it suppose to look like:



    edit: I made a mistake, i diddnt apply extrution to this bit of code instead i used point co-ordinates but still have the same problem above..
    Last edited by j.o.s.h.1408; 12-12-2005 at 11:48 AM.

  2. #2
    Chillie in here j.o.s.h.1408's Avatar
    Join Date
    Dec 2005
    Location
    a place called home
    Posts
    8,543
    Thanks
    757
    Thanked
    256 times in 193 posts
    • j.o.s.h.1408's system
      • Motherboard:
      • ASUS P6T Delux
      • CPU:
      • Intel core i7 920 @ 3ghz
      • Memory:
      • 3GB DDR RAM
      • Storage:
      • 1TB Samsung F1, 500GB Seagate baracuda + 320gb Seagate PATA +150GB WD PATA
      • Graphics card(s):
      • EVGA 480GTX SC edition
      • PSU:
      • Seasonic M12 600W Module PSU FTW
      • Case:
      • Lian Li PC-A7010B (the rolls royce of pc cases)
      • Operating System:
      • vista ultimate edition and windows xp
      • Monitor(s):
      • 22inch 2005FPW dell monitor
      • Internet:
      • 24mb BE There Broadband
    Update:

    Its ok now, i managed to sort it out today,i added this line of code SOLID FALSE and that made i work!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DVI problem, pc won't start! help needed.
    By snowwolf in forum Graphics Cards
    Replies: 1
    Last Post: 09-04-2010, 04:11 PM
  2. XFX 6800GT Problem
    By nvisage in forum SCAN.care@HEXUS
    Replies: 45
    Last Post: 07-08-2006, 12:28 AM
  3. Replies: 23
    Last Post: 08-08-2005, 11:05 AM
  4. gf4 ti4200 screen standby problem.
    By Pete in forum Graphics Cards
    Replies: 3
    Last Post: 14-11-2004, 12:02 AM
  5. Wierd Ati driver problem
    By Skii in forum PC Hardware and Components
    Replies: 5
    Last Post: 20-01-2004, 06:59 PM

Posting Permissions

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