Torusplanet

Post requests, images, descriptions and reports about work in progress here.
Topic author
john71
Posts: 319
Joined: 10.08.2016
With us: 1 year 10 months

Torusplanet

Post #1by john71 » 09.09.2017, 16:56

How can I edit the texture surface of a torus in Blender or Anim8tor?

There are strange asymmetric surface texture areas on the torus... :think:

Torusplanet.png

Avatar
selden
Posts: 10214
Joined: 04.09.2002
With us: 15 years 9 months
Location: NY, USA

Post #2by selden » 09.09.2017, 18:40

I'd use a cylindrical UV map in Anim8or of a surface texture map created with an equirectangular projection, with separate maps for the outer and inner sides of the torus.

The screengrab below shows a single surface texture map applied to a torus so you can see it's uniform. Next I'd use the point editor to select just the inner faces of the torus and apply another texture to them.

capture_003_09092017_143539.png


Added after 45 minutes 50 seconds:
and here's a quick hack.

The map around the outside is 8Kx1K: the same map appended to itself 4 times. The one around the inside is 4Kx1K.

Obviously one should also be more careful than I was when selecting faces on the inner surface.

torus.png
Selden

Topic author
john71
Posts: 319
Joined: 10.08.2016
With us: 1 year 10 months

Post #3by john71 » 10.09.2017, 18:07

Selden, thanks! I use an 8Kx8K surface map and Cylindrical projection is not working for me. :(

I had to use Spherical projection...

By the way I managed to avoid using 3ds format with Anim8tor. I use the obj format to create meshes in Blender, after that I use Anim8tor to open it (not import it) and apply textures to it. The exported obj file can be opened in cmodview, the saved cmod file can be fixed in cmodconverter, and after that I can edit the ascii file...

Added after 11 minutes 27 seconds:
Can you apply a normalmap texture to a torus?

It's not working for me...not even with a dxt5nm texture...

Added after 49 minutes 15 seconds:
Torusworld with specular lights and a moving cloud layer:

Torusworld 002.png

Avatar
selden
Posts: 10214
Joined: 04.09.2002
With us: 15 years 9 months
Location: NY, USA

Post #4by selden » 11.09.2017, 00:26

In principle, you can apply a normalmap to anything, but I've never tried. My modelling objectives usually are simple enough that I don't use them at all.

FWIW, I usually design an initial surface texture using dimensions which best fit the object I'm modelling, then (when I'm finished messing with the image) scale it to three different powers-of-two: a power-of-two so it performs better and three resolutions to allow the person viewing it to select a low resolution for performance or high resolution when they want to do a close inspection.

I'm not sure what you mean by "apply" -- whether as a texture specified within the model or as a texture specified in its SSC file. I tend to prefer doing the latter because then you can provide AltSurface directives in addition to hi/med/lo resolution surface textures which the viewer can select.

That torus looks pretty good! Is that a separate cloud texture I'm seeing? How is it being applied?
Selden

Topic author
john71
Posts: 319
Joined: 10.08.2016
With us: 1 year 10 months

Post #5by john71 » 11.09.2017, 19:29

Thanks! These are actually three identical meshes together, one surface texture mesh and two cloud texture meshes using alpha channels with bigger/smaller radius and much smaller RotationPeriods.

I can't use any atmosphere commands in the ssc file, they are not working properly in this case.

Normalmaps are not working, neither in the scc file nor in the cmod file.

themartian
Posts: 25
Joined: 16.08.2017
Age: 14
With us: 10 months 3 days

Post #6by themartian » 12.09.2017, 18:12

please share

Topic author
john71
Posts: 319
Joined: 10.08.2016
With us: 1 year 10 months

Post #7by john71 » 12.09.2017, 18:21

It is not finished yet, I'm working on adding a normal map to the add-on.

Topic author
john71
Posts: 319
Joined: 10.08.2016
With us: 1 year 10 months

Post #8by john71 » 14.09.2017, 17:09

OK, here we go. I was able to make the normalmap work...kinda.

Torusnormalmaperror.png


Help!

What is going on?

Have you ever seen something similar in Celestia? :weirdface:

I use dxt5nm normalmap texture in the cmod file, and the "tangent f3" command. I generated the tangents in cmodview.

:help:

Added after 47 minutes:
OK, I solved it. I messed up the normals in the cmod file. Don't ask why and how. :insane:


Return to “Add-on development”

Who is online

Users browsing this forum: 2 guests