Jump to content


Photo

Hide model during "awaiting construction"


  • Please log in to reply
1 reply to this topic

#1 tomas.salat

tomas.salat
  • Members
  • 10 posts

Posted 23 March 2022 - 04:16 PM

Hi all,

 

I was trying to create a "trebuchet tower" by simply taking the fortress expansion and modifying the ini files to suit my tower and add some upgrades on top of that. Everything works as it should but I have decided to add some object around the tower to make it more "interesting" and found an issues I am unable to solve.

 

I have decided to add some rubble and wood beams at the back to the tower. This is working, and displayed as it should, however, they appear during "awaiting construction" not properly. To explain, you have like 4x phases of construction. The 1) you choose the building and try to find a place where to put it (the model is transparent) - here the model of the tower with the props looks good, 2) you place the building somewhere and the builder is running to build it (after placing the building it steel appears transparent) - here the props are rotated (see the video), 3) it is being build (I have hid the props during this step) and 4) it is done (props are looking ok).

 

I would like to hide the props during step 2) but cant find a way how to do it.

I have tried to set the ModelCondition equal to Awaiting Construction but it doesn't work, tried even scripts but no success. I am missing some reference to all the attributes of the functions so I am playing sometimes blind. Any idea how to hide the props during g2)?

 

Video: https://www.design.3...zSaqcFdRAcNataG

This is the part I am trying to change...

    Draw = W3DScriptedModelDraw ModuleTag_Draw_gbftrtowc
        OkToChangeModelColor  = Yes
		DefaultModelConditionState
			Model = gbftrtowc
		End
    	ModelConditionState			= ACTIVELY_BEING_CONSTRUCTED PARTIALLY_CONSTRUCTED 
			Model = none
		End
		MultiPlayerOnly = Yes 
	End

Whole code:

 

 

Spoiler


#2 tomas.salat

tomas.salat
  • Members
  • 10 posts

Posted 24 March 2022 - 02:24 PM

Hi,

 

I have decided to do it using a different way and to add these props directly to the model using Blender. This is working fine but I am not struggling with preserving the "normals" and thus the smoothed surface of the model. Cant figure out why by export it looses this property.

 

I really hope that someone is using Blender to edit or create new w3d models and can help me. I wanted to slightly edit one "stock" model from BFME2 and I have done it but I have noticed later on that the model is not smoothed. Searching around I have realized that the "normals" weren't turned on but although I can see the model smoothed in Blender, after exporting it the model does not appear like that.

I am new to Blender and although I was using 3ds max for many years, I cant find the "right" combination to keep the smoothing on the model. I have enclosed a few screens, (1) is the imported model to Blender from the stock model, (2) is how it appears after exporting, modifying a bit and again importing, (3) how (2) appears with auto normals but again, after exporting and importing (3) back to Blender, the model looks again as (2).

I have noticed that Blender after importing isolates all triangles and thus I am merging all vertex to apply the "smooth shading". I have as well tried to split the edges while applying normals but no luck. I am pretty sure that I am missing something but cant figure out what.

anyone with experience with Blender?

Image 1: https://www.design.3...pFp4sjitwxnqLMi
Image 2: https://www.design.3...tKrBdccwCH5ajJa
Image 3: https://www.design.3...DsSt6B53GfeWKaG

thx, Tomas






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users