WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-27-2011, 01:43 AM
FreakyT FreakyT is offline
Member
 
Join Date: Apr 2011
Posts: 3
Question Tiling a texture on a plane

This seems like it should be easy, but it's not working for me, so perhaps someone could figure it out.

Anyway, I'm trying to create a large plane with a "grass" looking texture on it. (Pretty simple!) The plane is a VRML file (attached) containing an IndexedFaceSet. (I found that Vizard's physics engine didn't work right on objects with small numbers of triangles, so I had to tesselate the "plane" a lot)

However, I can't get the plane to get a texture! I figure maybe it's getting one but really stretched out, however I can't seem to get it to tile a scaled down version of the texture, either. Any ideas on how to do this?

Thanks!
Attached Files
File Type: zip GroundPlane.zip (95.8 KB, 3218 views)
Reply With Quote
  #2  
Old 04-27-2011, 12:45 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
It maybe your model does not have texture coordinates. Was it exported without a texture?
Reply With Quote
  #3  
Old 04-27-2011, 05:34 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Also, make sure the wrap mode on the texture object is set to viz.REPEAT.
Code:
texture = viz.addTexture('grass.jpg',wrap=viz.REPEAT)
Reply With Quote
Reply

Tags
plane, texture, vrml

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 03:15 PM
Texture applid on a plane gets inverted in one of its the sides Renato Lima Vizard 1 03-14-2011 06:16 PM
How to apply shader and render texture to an object whj Vizard 0 04-23-2010 12:23 PM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM
Texture tiling ChrisB Vizard 2 08-13-2004 11:49 AM


All times are GMT -7. The time now is 04:04 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC