News:

When replying to a specific statement be sure to quote the previous post.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Display Text underneath Glass Window

Started by AussieBloke, November 28, 2017, 02:06:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AussieBloke

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?

Andy H

I don't know about Lightworks, but in RedSDK one needs to set the text Mode to Scalable for it to render correctly.

Tim Stewart

    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
Regards Tim

You can design without engineering, but you cannot engineer without design.
Windows 10 Pro (19043.1165) 64-bit, TurboCAD Designer 2017-2020 and Pro. Plat. 2018-2020 + LW (64-bit) + AnimationLab 6
Intel i5 2500@3.3GHz 8GB Ram NVIDIA Quadro K2200

Majo

#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
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

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

AussieBloke

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.

AussieBloke

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

Majo

Quote from: Aussie@4868 on November 28, 2017, 04:23:14 PM
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.
WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

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

AussieBloke

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!

Majo

WorkPC->HP Z6 2x Xeon Gold 6138 CPU, 192GB RAM, NVIDIA RTX 4060 Ti, Win11 Pro 64bit

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

AussieBloke

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!)


AussieBloke

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.

Andy H

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.





Andy H

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

AussieBloke

Just got back online now, still got a lot of installing and backups to process.

Andy thanks for your time here.

AussieBloke

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