Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

DirectX D3DTOP_ADDSIGNED

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
4 replies to this topic

#1 Jeason   Members   

96
Like
0Likes
Like

Posted 04 February 2012 - 07:41 AM

What is the biggest difference between D3DTOP_ADDSIGNED and D3DTOP_ADD?

When I take multitexture technology, I can get good effect by adding detail texture to base texture with D3DTOP_ADDSIGNED, but not with D3DTOP_ADD.

I can't comprehend it well.

#2 Jeason   Members   

96
Like
0Likes
Like

Posted 05 February 2012 - 07:01 PM

SOS!

#3 Madhed   Members   

4095
Like
1Likes
Like

Posted 05 February 2012 - 07:08 PM

add signed has a -0.5 bias meaning the texture can brighten or darken the other texture.

IMHO you should ditch the fixed function pipeline which is outdated nowadays.

#4 Jeason   Members   

96
Like
0Likes
Like

Posted 05 February 2012 - 08:04 PM

Thank you! Madhed.


You are right. I just want to know the technologies which are introduced in the books, so i won't feel confused.

Yes, the detail map has to darken some pixel. So it needs to be signed.

#5 mhagain   Members   

13160
Like
1Likes
Like

Posted 06 February 2012 - 05:49 AM

This is all covered in the SDK help file which should definitely be your first point of reference to supplement anything from books.

D3DTOP_ADDSIGNED
Add the components of the arguments with a - 0.5 bias, making the effective range of values from - 0.5 through 0.5.


It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.