Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
How can I use the functions of "copy the lenseflare to scene" and "attached to object" in Scene Builder??

'cause I had tried many times, but show nothing!! Please offer me the sample codes to refer, tkx!
 
Posts: 17 | Registered: March 13, 2006Reply With QuoteEdit or Delete MessageReport This Post
EnIgMaTiCScOrPioN
Member
Picture of e_phoenix13
Posted Hide Post
Hi !!

Follow these steps:

1) Go to Primitives Menu and create a Sphere.
2) Go to Debug Menu.
3) Click on "Copy LensFlare To Scene". This creates a named Lens Flare in the scene.
4) Click the Attached To option and select the sphere you created.

This creates a lens flare in the scene and attaches it to the sphere.

Here is the MTX code:
<MTSScene Version="330" >
	<MTSSceneParms RenderMode="LightTexture"  BlendShadow="1"  EdgeBias="1" />
	<MTSCamera OrbitDist="4" >
		<Rotate x="29.79378"  y="-58.44165"  z="0" />
		<ViewLocation x="0"  y="0"  z="4" />
	</MTSCamera>
	<MTSInstance Name="Simple_0" >
		<Transform>
			<Scale x="0.5"  y="0.5"  z="0.5" />
		</Transform>
		<MTSGeometry Name="MTSSimple_0"  MultiUV="0"  Type="MTSSphere" />
	</MTSInstance>
	<MTSTimeElem Name="myLensFlare1"  Type="MTSLensFlares"  loc2="0.500000 0.500000"  loc3="-0.520037 0.443436 -0.728437"  vno3="0.000000 0.000000 0.000000"  vio2="0.000000 1.000000"  lmap="0"  zmin="-1.000000 -1.000000"  zmax="-1.000000 -1.000000"  halo="1"  strk="1"  refl="4"  stco="0.999954 0.999954 0.999954"  haco="0.531243 0.019760 0.019760"  lico="0.869398 0.881544 0.223621"  soco="0.855238 0.843748 0.249989"  inco="0.815747 0.593744 0.052674"  ouco="0.703120 0.332021 0.085435"  rtco="0.000000 0.000000 0.000000"  Brit="1.37"  Aspt="0"  liin="1"  lisc="1.49"  hain="0.05"  hasc="1.49"  rein="0.12"  resc="1.11"  stin="0.68"  stsc="0.92"  stro="0"  stan="0"  stca="0"  dlco="1"  dsgl="1"  digl="1"  dogl="1"  drtt="1"  PostAnimator="1" >
		<RefObject Name="Simple_0" />
	</MTSTimeElem>
</MTSScene>



Hope this helps.

Cheers,

Anup
 
Posts: 557 | Location: India | Registered: February 12, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
And how to delete the lenseflare in Scene Builder? THX!
 
Posts: 17 | Registered: March 13, 2006Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
And the other one question is when I create a lenseflare and attach to one object, it's very difficult to adjust the 3D position X,Y,Z function(it seems fine-tuning tool) listed in Scene Builder to be exactly the same position as the object, so it looks very weird to exist a long distance between object and lenseflare!

So how to solve the problem, I want these two to be the same 3D position exactly. Please help!
 
Posts: 17 | Registered: March 13, 2006Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community