How can 2D text be reflected onto 3D mesh surface? - text

How can a 2D text be reflected onto 3D mesh surface in C# ?
Thanks in advance.
Cemo

Render the text to a texture and use the texture on the mesh.

Related

Automatically Mapping Image Texture to UV Maps For Custom Mesh?

I am trying to apply texture to 3D clothing model using openCV. I have the UV maps of the clothing model and an image of the texture I want to apply which I prepared using grabcut(). How do I deform the texture image to match my UV mesh using OpenCV or any other automated method. I am providing the input Texture Image and also the UV mesh of the clothing. I am new to 3D modeling and OpenCV and I am facing issues with this please help me out.
Input Texture Image
UV mapped mesh of 3D model
Similar query at this link here

Best way to project an arbitrary 2D polygon onto a 3D triangle mesh?

What is the best way to project an arbitrary 2D polygon onto a 3D triangle mesh?
To make thing clearer, here is a visualization of the problem:
The triangle mesh is representing terrain and thus can be considered 2.5D. I want to be able to treat the projected polygon as a separate object.
This particular implementation is done in WebGL and three.js but any solution that fits an interactive 3D application is of interest.
If your question is not how to texture map the surface, then you really have to generate new 3D polygons.
You will be using some projection mechanism (such as a parallel one) that turns your 3D problem to 2D.
First backproject the surface onto the polygon plane. The polygon will be overlaid on a corresponding 2D mesh. Now for every facet, find the intersection (in the Boolean sense) of the facet and the polygon.
You will need a polygon intersection machinery for that purpose, such as the Weiler-Atherton or Sutherland-Hodgman clipping algorithms (the latter is much simpler, but works on convex windows only). (Also check http://www.angusj.com/delphi/clipper.php)
After clipping, you project to the original facet plane.

UV Projection of 3D shape onto 2D images

Given a 2D image of a human face and the corresponding 3D shape, how do I project the shape onto the images to extract texture patches from them to form a partial UV map?

OpenGL - Print 2D Text in fixed position on the screen in a 3D world

I am creating a 3D world in OpenGL & C++, with a 3D model moving in 3D world. I have to put on the screen some 2D text: the camera is constantly following the model and I would like the text to appear in a fixed position with respect to the window.
any body can please paste a sample code ? Any tutorial, link?
Kind regards : Mehrgan
Transform your 3D world position by multiplying it with your projection, view and model matrices. You should obtain the normalized device coordinates of the point, between [-1,1].

how can 3d shape data project onto your 2d screen in computer graphics?

So correct me if i'm wrong, but I think all elements in 3d graphics are meshes.
So the question is really, how do you take mesh data and create a 2d projection based on the mesh data, the camera location, rotations of camera & mesh, etc.
I realize this is fairly complicated and I would be satisfied by just knowing what the technical term for this is called so I may search and research it.
You can read about 3D projection on Wikipedia.

Resources