Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Pages: [1] 2

Author Topic: Decal questiion  (Read 9225 times)

jbskaggs

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Decal questiion
« on: January 12, 2021, 03:51:28 pm »

I am trying to apply decal to sphere.

The problem is how it renders the transparency of the decal  texture:

As you can see the transparency comes out strange.  Ideas?

And thank yall I know Im posting a lot of questions bit I am almost fully back up to speed.
Logged

jbskaggs

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Decal questiion
« Reply #1 on: January 12, 2021, 05:00:49 pm »

it appears the shading and lighting on the decal is a mirror image of the actual object. So when I apply it stands out, rotating the decal does not change the shading or lighting.

Im stumped.
Logged

Trevor

  • Full Member
  • ***
  • Posts: 220
  • Goldfinger64 Dev OS:10 CPU:5960x Gfx:RX480
    • View Profile
    • LS Tech Services
Re: Decal questiion
« Reply #2 on: January 12, 2021, 05:10:33 pm »

An8 cannot do decals.
it does have a very good z-buffer and so making a separate decal object say 1 unit off the surface will work in "most" cases.

It would be good to allow co-planner faces to be defined as "decal" though (forcing on-top draw order)

Trev
Logged

jbskaggs

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Decal questiion
« Reply #3 on: January 12, 2021, 05:47:08 pm »

Thanks I will try that.
Logged

jbskaggs

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Decal questiion
« Reply #4 on: January 12, 2021, 09:32:03 pm »

An8 cannot do decals.
it does have a very good z-buffer and so making a separate decal object say 1 unit off the surface will work in "most" cases.

It would be good to allow co-planner faces to be defined as "decal" though (forcing on-top draw order)

Trev

Hi trev what shape decal object do you mean-  like another sphere? Just slight larger?  or something else.  Im not getting it to work.  Do you have an example perhaps?
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2126
    • View Profile
Re: Decal questiion
« Reply #5 on: January 13, 2021, 05:29:47 am »

Here's an ART rendering of all texture blend mode + alpha mode combinations.
Logged

jbskaggs

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Decal questiion
« Reply #6 on: January 13, 2021, 10:30:35 am »

Following both of you gentleman's advice here is the result:

The sphere s two spheres-  one sphere with graphic overlaid 1 unit over the blue sphere.  texture set to decal final in ambient and diffuse layers.

2nd image is a cube with the same texture settings.

I think they came out well.
Logged

jbskaggs

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Decal questiion
« Reply #7 on: January 13, 2021, 10:40:19 am »

How does one calculate the needed texture size to wrap the sphere without repeating pattern?

Say you have a 128pix sphere would it be: A=4'pi'r2  or square of 4*3.14*64*64 which would be 226x226 texture?

Am I thinking this correct?
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2126
    • View Profile
Re: Decal questiion
« Reply #8 on: January 13, 2021, 11:02:44 am »

It's not the size of the texture that matters, it's the texture coordinates assigend to the faces of your model. Anim8or assigns texture coordinates such that any texture will wrap around perectly.
Logged

jbskaggs

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Decal questiion
« Reply #9 on: January 13, 2021, 11:18:05 am »

So then on my end how do I create a texture that does not repeat on a sphere?  Like a world map-  it wraps once and is done? Sorry for being dense
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2126
    • View Profile
Re: Decal questiion
« Reply #10 on: January 13, 2021, 01:04:49 pm »

Simply make a picture of whatyou want wrapped around the sphere. Here's an  example.
Logged

jbskaggs

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Decal questiion
« Reply #11 on: January 13, 2021, 01:48:06 pm »

Oh what I was doing wrong was I had messed with UV map for the decal/ So applying texture to new obj worked fine.

Thanks for being patient

Btw how do you remove all uv mods and materials from an obj?
Logged

Steve

  • Administrator
  • Hero Member
  • *****
  • Posts: 2126
    • View Profile
Re: Decal questiion
« Reply #12 on: January 14, 2021, 04:57:40 am »

You can't remove UV coordinates, but you can assign them. The same is true for materials. An object has to have *some* material to be drawn.
Logged

jbskaggs

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: Decal questiion
« Reply #13 on: January 14, 2021, 02:25:25 pm »

Im sorry, what I meant was to return the object to its previous states before messing with the UV map or materials buttons.  Besides ctrl-z or reloading.
Logged

ENSONIQ5

  • Hero Member
  • *****
  • Posts: 1012
    • View Profile
    • Mission Backup Earth
Re: Decal questiion
« Reply #14 on: January 14, 2021, 08:02:17 pm »

Double-click the object with UV tool activated to access the Texture Coordinate Parameters dialog box which includes a 'Reset to default' option.
Logged
Pages: [1] 2