TurboCAD Forums

The Ultimate Resource for TurboCAD Knowledge

Register
 
All posts discussing pricing or where to buy TurboCAD will be deleted.

Display Text underneath Glass Window
Read 1661 times
* November 28, 2017, 02:06:09 AM
Is it possible to display text underneath a glass window, Ive been experimenting but have not found a suitable answer.

I did try exploding and this works but it appears slow to update ( had exploded text as an object and changed the associated text by varying the text properties ) and that probably not suitable for animation.

Does anyone know how this might be done?

Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best


* November 28, 2017, 03:15:30 AM
#1
I don't know about Lightworks, but in RedSDK one needs to set the text Mode to Scalable for it to render correctly.

Logged


November 28, 2017, 04:11:20 AM
#2
    Unfortunately, I am using 2016.  :(

    However, just a quick suggestion.
    Create some normal text as bold.
    Extrude to say, 1 mm. Explode text once to ACIS solid. Explode again, if there is more than one letter/number.
    You should now have individual letters/numbers which can be animated as a group/s, or individuals.

    Have you tried this already?


Regards Tim

Logged
You can design without engineering, but you cannot engineer without design.
Using Win 10 with Designer 2017 and TurboCAD Pro. Plat. 2016/2017/2018 + Lightworks (64-bit versions).


November 28, 2017, 06:29:25 AM
#3
Darryl, try the easiest way for text which you want animated.
Copy animated text from the file in the attachment and paste in your drawing. (You not need to explode or not to do something else with this text.)
Now you can add a command for animation.

File is for TC2017
« Last Edit: November 28, 2017, 06:41:48 AM by Majo »

Logged
WorkPC->HP Z620 2x E5-2680v2 2,8GHz, 64GB RAM,Quadro K4000, 400GB SSD+2TB HDD, Win10 Pro 64bit
HomePC->i7-3770 CPU 3,40GHz, 16GB RAM, GeForce GTX 760, 120+60GB SSD, Win7 HP 64bit

TC Pro Plat x64
www.invent-dizajn.sk, www.facebook.com/marian.jurcak


* November 28, 2017, 01:40:51 PM
#4
Andy I did try scalable and flexible and even exploded based on both of those, when the text is flexible it goes to like a black outline only and the text is much harder to see / visualise on a small animation. Tim I think what I did ( not in tcw atm ) was very similar to your suggestion. Mine was 2017, sorry I will try to remember that not everyone has 2017. OT: First Test to the Aussies!

Majo, thanks will try this shortly.

Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best


* November 28, 2017, 04:23:14 PM
#5
Hey Majo, thankyou for your assistance here this is almost what Im trying to achieve.

With the AnimDimensionWithText Modified.tcw file all I did was hide the constrained lines and the linear dimensions. I know this is just a sample test, what Im hoping to get is to just display variable numbers for the  ( Integer, Decimals  layers only ) underneath the DisplayWindow layer which is Lightworks material: glass.

Solving this then allows me to animation a Digital Caliper being adjusted for measuring on screen.

Can the text you added ( eg: 1  )  which is currently an outline text only. Can that  be converted or changed to a solid fill colour like black for clarity in the animation, when its viewed from underneath the display window?

For clarity: see the gif, your text is currently sky blue outline and I need solid fill black as the text displayed would be small when animated.

Majo your help here is appreciated, thank you.

AnimDimensionWithText Modified.tcw
AnimDimensionWithText.gif
Anim numbers.PNG
digital caliper.png

Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best


November 28, 2017, 06:05:46 PM
#6
For clarity: see the gif, your text is currently sky blue outline and I need solid fill black as the text displayed would be small when animated.
Hi Darryl,

Set up for the Text object in Properties panel->3D->Thickness to "0" and you will have only "solid fill animated text".
But then you have to use for the render setting "Nonrenderable objects" check/ON.

Logged
WorkPC->HP Z620 2x E5-2680v2 2,8GHz, 64GB RAM,Quadro K4000, 400GB SSD+2TB HDD, Win10 Pro 64bit
HomePC->i7-3770 CPU 3,40GHz, 16GB RAM, GeForce GTX 760, 120+60GB SSD, Win7 HP 64bit

TC Pro Plat x64
www.invent-dizajn.sk, www.facebook.com/marian.jurcak


* November 28, 2017, 08:19:18 PM
#7
Majo thanks for your help here ;D, these animations are going to look 1st class I hope.

If I can ever help you let me know!

Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best


November 29, 2017, 01:41:39 AM
#8
You're welcome!

Logged
WorkPC->HP Z620 2x E5-2680v2 2,8GHz, 64GB RAM,Quadro K4000, 400GB SSD+2TB HDD, Win10 Pro 64bit
HomePC->i7-3770 CPU 3,40GHz, 16GB RAM, GeForce GTX 760, 120+60GB SSD, Win7 HP 64bit

TC Pro Plat x64
www.invent-dizajn.sk, www.facebook.com/marian.jurcak


* November 30, 2017, 01:14:13 AM
#9
We had a brown this afternoon and I lost about numerous  open files and some animations at the same time. Had to reinstall TCW, lucky win 10 repaired itself as I rebooted. My backups are 6 days old so Im reverting to psudeo code to get back to speed fast. The psudeo code.png represents the digital caliper.

Using a mixture of psudeo code and animation lab commands from memeory, therefore the logical steps are:

AnimationLab Actors
Dimension  ( is tied to the constrained rectangle width )
AnimNumber ( is tied to the display window text  underneath, the display window. Material: glass  )
Do I need to use a Mobile Camera?

Animation on screen:
Jaw2 opens by an AL move in X direction command
A  rectangle (  hidden object )  serves as the reference dimension to ( variables ) "var1" & "var2" ( declared in TCW variables pallete)
Var1 is for the integer
Var2 is for the decimal

Dimension Actor
            Param-1   Param-2
0   20    SetVariable   "Var1"   ( get integer portion of dimension )
0   20    SetVariable      "Var2" ( get decimal portion of dimension )

AnimNumber Actor
0   20    SetAttribute   StrText

VB Code

dim StrText

Sub StepCustomAction

   StrText = " Var1" + "." + " Var2"
   ' write StrText to AnimNumber
   ' Jaw2 closes or moves by an AL move in -X direction command
   ' then repeat above
end sub

I know there are going to be errors in my mixed psuedo code and animation commands, can anyone comment please on what Ive gotta get happening again. ( is someone sticking a voodoo pin in me haha, yuck!)


Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best


* November 30, 2017, 12:33:12 PM
#10
My previous post was not too clear at all, just got my mobile atm. Yesterday afternoon we had a brown out with the electricity and I lost numerous files in tcw and other apps, I am surprised that windows restarted after a self repair.  But now the pc is dead and it wont start at all. Im hoping insrance will sort this out and Im now off to get a new pc today. My previous post was done on the workshop xp and saved to a usb, then copied to my mobile for upload.

Would someone please check my previous post for ideas to get back to speed quickly.

Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best


* November 30, 2017, 02:48:30 PM
#11
Rotten luck with the computer, hopefully things were backed up externally.

Looking at you code, I don't mind admitting that I don't really understand what's going on (so I was hoping someone else did),  it looks like it is trying to create a string by reading the values in Var1 and Var2,  but it can't do that without delving into a bit more code, generally variables use in AL script are one directional and are used to control object not read for them.





Logged


* December 01, 2017, 08:13:39 AM
#12
HI Darryl,   sorry I was tired last night so my reply wasn't particularly helpful.

Anyway,  after finished shopping today  I decided to have a play, I didn't bother with constraints,  the bottom (glass) figure uses a simple custom script, the top figure is a formula typed into 'set attributes' ,   I used,  3 seconds x 25 frames per second (AVI) = 75 frames,  distance 125.25 divided by 75 = 1.67, so each frame the figure and move should increase by 1.67mm,  the text is flexible with thickness, so should always show up. (I used RedSDK).

the GIF is actually longer as I didn't bother altering the above for a GIF save. the seconds, frames and distance required playing with so the final figure isn't something silly to 10 decimals.

Just my thoughts, and an example of an alternative way of doing it (there will be more ways :) ).   the calculations / formula can be improved a lot,  but as I say its just an example .

Andy

Logged


* December 01, 2017, 03:06:37 PM
#13
Just got back online now, still got a lot of installing and backups to process.

Andy thanks for your time here.

Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best


* December 01, 2017, 03:12:27 PM
#14
Just viewed your animated gif then, this looks close to what Im after. Just have work thru backups which are old and then redo whats missing, thanks Andy ;D

Logged
Thanks Daz
TCW V21, 2016 & 2017 PP, Animation Lab V5, Graficalc, TCMap, TurboPDF V2-V3 & Lightworks mostly
Windows 10 Home ed. i7 @ 3400Ghz, 16GB, Nvidia 960GTX 4GB ram, 2TB HD, 500GB SSD & 128GB SSD

Good better best
Never let it rest
Until your good is better
And your better is best