Skip to main content
GameDev.net gamedev.net
🔒 Locked

How to write a texture to a face(Solid ) in a geometric model

Started by NagD Mar 25, 2016 at 6:28 AM 3 replies 1.9k views
Original Post
NagD
NagD

Hello! I am trying implement one functionality . Please help me in it.

problem statement:

How to write a text on 3d model surface which is imported from STL file .

Added image for reference. please anyone give me an idea.

L. Spiro
L. Spiro

Convert them to FBX or COLLADA, import into a 3D editor (Blender, Maya, 3DS Max, etc.), add UV’s and textures, throw away all STL assets, and use FBX/COLLADA from now on.

L. Spiro

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid
NagD
NagD
Hi Spiro,
Great to hear from you.i cant use any software.I am developing one CAD application in that I need to implement above functionality.please let me know your inputs.Thank you.
Regards
Nag
L. Spiro
L. Spiro
Generating UV coordinates is nontrivial, and has to be done specifically for each different mesh. Depending on what you want to put where, you can project you record it's onto the mash by setting up a specific view and projection matrix and converting the points using that matrix into a 0 to 1 range in both directions. These would be your UV coordinates.

Or you would need to import these files into some 3-D editing software and export the UV coordinates into to a separate file. Then load both files together and take the UV coordinates from the other file.

It's hard to offer advice without knowing what you're doing and what restrictions you have.


L. Spiro
I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid
NagD
NagD

Hi Spiro,

That was great! I am developing application in C++,Qt,Opencascade library.Platform Windows7.Can you please let me know detailed approach.

Best Regards

Nageswara Rao

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.