Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: TvMesh 3dText  (Read 2498 times)
cybertrickle
Community Member
*
Posts: 504


« on: December 06, 2002, 03:04:16 PM »

How do you change the size of 3d text in TVMesh
Also, is it possible to change the color of the text?

Thanks
Logged

Evan Duffield
Dymm Inc.
_______________
Project: Journeys End
Status Code: 80%
Status Modeling: 20%
Working on:  completion of demo
phether
Customers
Community Member
*****
Posts: 425


« Reply #1 on: December 06, 2002, 07:16:42 PM »

you can resize with:
mesh3DText.ScaleMesh(sngScaleX,sngScaleY,sngScaleZ)
you can change color with:
mesh3DText.SetMaterial(intMaterial)'assuming you have created the material already
Logged

Birds of a phether...
Code with pride not ego!
Rikerdhh
Community Member
*
Posts: 9


« Reply #2 on: December 06, 2002, 09:45:33 PM »

I am trying to reduce the size of some of my meshes.  I am trying to use:

house.ScaleMesh(20,20,20)

however I get an error :

Compile error:

Expected: =


Now I assume that to reduce the size of a mesh I need to use house.ScaleMesh(.5,.5,.5) or something to that effect.  But that doesn't give me any better results.

I have tried using house.ScaleMesh(sngLocX,sngLocY,sngLocZ)=.5 but then I get:

Compile error:

Expected: Function or variable

and the
.ScaleMesh(sngLocX,sngLocY,sngLocZ)= is highlighted.

What have I missed?  Am I using this correctly?  Is there a better way to resize meshes?

Sorry for so many questions but I am still working my way through all this.

Thanks
Richard
Logged
Zaknafein
Customers
Community Member
*****
Posts: 2940


WWW
« Reply #3 on: December 06, 2002, 10:16:13 PM »

Simple VB error..... when you call a void-returning function (A.K.A. a Sub), you don't need to put paranthesis, in fact if you put any, VB calls for an error.

You have to do
Code:
object.ScaleMesh 20, 20, 20


Hope this helped!
Logged

Rikerdhh
Community Member
*
Posts: 9


« Reply #4 on: December 06, 2002, 10:50:49 PM »

Yes that worked perfectly.  Thank you.

Richard Moore
Logged
phether
Customers
Community Member
*****
Posts: 425


« Reply #5 on: December 08, 2002, 06:44:14 PM »

LOL, Sorry I am using VB.NET and '()' get put around any Method (Sub or Procedure)
Logged

Birds of a phether...
Code with pride not ego!
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks