Product Chat / [SOLVED] Bump mapping works with jpg?

Author
Message
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 26th Dec 2020 16:59 Edited at: 26th Dec 2020 21:39
Ok, its only .dds and .tga s perhaps?
Stop being mediocre, be Yourself...

The author of this post has marked a post as an answer.

Go to answer
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 26th Dec 2020 21:42
Yeah, forget .jpg.....

You need to use .dds for all your textures (you can use .png but it is just more work for the engine to convert it) and .dds will look better anyhow.

There be some super useful info by AE in his wip thread - great read.

Also make sure graphics are set to 'medium' or 'high'.

OldFlak....
System Specs
i7-9700K 3.60GHz. ASUS NVidia GeForce GTX 1060 6GB. 32GB Themaltake ToughRam Z-ONE 3600.
Main Screen: HP 27" @1920x1080 - Screens 2\3: Acer 24" @ 1920 x 1080

Windows 10 Pro 64-bit Insider
aka Reliquia
PM
Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 26th Dec 2020 23:11
You have been around a while, long enough to figure that .jpg is never a viable format. Its obvious and at this point should not even be a consideration . Stick to .dds and you shouldnt have any problems.
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 27th Dec 2020 02:11 Edited at: 27th Dec 2020 03:04
I love jpg format and will use it for many objects that doesnt need pbr or a simple normal map. I did buy MAX today and I can only say I love it! I congratulate LEE to something that are really much better than old Gameguru! I did draw My first map and I hated it, I did a second try and i loved it!!! I have always cared much about lightening and the lights are in GTA5 class here...
Just worried about making more rocky mountains shourlnt We have a button for more Classic-like mountains?
They are so very rounded in MAX (But hey thats good too sometimes)!
Great and promising Job LEE....
Stop being mediocre, be Yourself...

Attachments

Login to view attachments
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 27th Dec 2020 12:40 Edited at: 27th Dec 2020 12:41
Quote: "I love jpg format and will use it for many objects that doesnt need pbr or a simple normal map."

errmmm, no. We be trying to tell you that you should not use jpg - it is all but useless in 3D space.

Your graphics card wants to deal with .dds... soooooo.... Use .dds - doesn't matter if it is for pbr or dns.

Just do not use jpg. If you read that link I posted above you will understand a bit more why you should be using .dds.

OldFlak....
System Specs
i7-9700K 3.60GHz. ASUS NVidia GeForce GTX 1060 6GB. 32GB Themaltake ToughRam Z-ONE 3600.
Main Screen: HP 27" @1920x1080 - Screens 2\3: Acer 24" @ 1920 x 1080

Windows 10 Pro 64-bit Insider
aka Reliquia
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 27th Dec 2020 15:20 Edited at: 27th Dec 2020 15:20
The problem with jpg Is that it's not designed for 3d, a jpg file may be smaller in file size, but it takes a lot more work on your gpu for it to covert it to a displayable format, dds runs directly without having to be converted, whereas a jpg has to be decompressed, processed, converted, the processed again for the gpu to display it, which means you will be using two or three times more resources than if you had just converted it to DDS in the first place

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 27th Dec 2020 20:19
DDS and PNG support alpha channels which once you get used to playing around with those channels you can get some really awesome results. You just can't do that with JPG.
Store Assets - Store Link
Free Assets - Resource Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 27th Dec 2020 22:52 Edited at: 27th Dec 2020 22:57
Well I think quality with dds is rather low compare with The very small files jpegs have. The quality is better than dds in My opinion and using jpgs did speed up My game with around 10fps on an old Asus comp. Nowdays I run a Dell XPS and dont really have to care about speed but its good If Everybody can play My games... Wourld be fun If Anyone courld do a benchmark to test out different formats...?
Stop being mediocre, be Yourself...
Monkey Frog
4
Years of Service
User Offline
Joined: 5th Feb 2020
Location:
Posted: 27th Dec 2020 23:14
You're not correct here. File size (as in how many bytes) has little to do with how much memory an image takes up on your video card. It's all about the actual pixel size of your image (2048 x 2048, 512 x 512, etc.). Therefore, even if a JPG file has a smaller file size (in bytes), it won't have a smaller memory imprint on the video card's memory. On top of that, JPG is a lossy format. Even at 100%, there is some information lost and, as a result, you will never get a full-quality image out of a JPG when compared to lossless formats, like PNG, .dds, etc.

As far as DDS, it will give you exactly the quality of the image you feed it. So, if you're getting poor DDS textures, then the fault is not DDS.

Using JPG will NOT speed up frame rates. Again, the file size (bytes) has nothing to do with it. On top of that, as the others have been trying to point out to you, your video card is having to take extra time to change the format from JPG to what it wants to use for real-time 3D content. So, give the video card what it wants to begin with, freeing up some computations for more important things.

Quote: "Wourld be fun If Anyone courld do a benchmark to test out different formats...?"


There is no need because speed is not dependent on format as the video card will convert it into what it needs. You don't optimize a 3D game by using different formats like GIF, JPG, etc. You optimize by determining what size (in pixels) you really need to be used on any given object so that you can keep load times low and keep memory as free as possible.
Intel i9-109000K 5.10GHz, 64 GB RAM, Nvidia GTX 1080 ti 11GB, Windows 10 64-bit, dual monitor display
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 28th Dec 2020 00:28
Well dds is still a big format in size, take a look AT for example palm06 22mb Times 4-5 for pbr!!! Thats 100mb for one object, You courld have done that with just as good resultat 5-10mb with jpgs. I have all My textures in bmp sence its The best quality and then convert to almost lossless jpg. Rumors talk bad about jpg but If I save at quality 6 of 12(max) Ill get dxt5 quality! Png is Great but too big, and so are most other formats. Loss at 100% is a DUMB thing to say sence the loss is almost zero that means You cant see The difference with Your naked eye.
Stop being mediocre, be Yourself...
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 28th Dec 2020 04:36 Edited at: 28th Dec 2020 04:40
I don't think there are many engines out there that natively support JPEG. I actually don't know any 3D modelers currently (or in the past) mapping JPEG textures to their meshes?

This small write up explains things a bit more:
https://steamcommunity.com/sharedfiles/filedetails/?id=399300304

There is also a bit of comparison made here that reads as:

Quote: "DDS textures use less memory
The advantage of using .DDS textures for your materials is that this file type makes it possible to reduce the amount of memory that textures use by lowering the quality a little. This is useful if you're trying to cram as many textures as possible into a limited amount of graphics card and system memory, and is especially suitable for organic/nature textures where precision is not vital.

Example:

16-bit 1024x1024 .JPG image requires 2.4 MB of graphics card memory.
The same image stored in .DDS format using BC7 compression would require only 630 KB. So you could use almost 4 x 1024x1024 .DDS textures for the 'price' of 1 .JPG texture."


Full article:
https://support.lumion.com/hc/en-us/articles/360003455654-What-is-the-advantage-of-using-DDS-textures-
Store Assets - Store Link
Free Assets - Resource Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Monkey Frog
4
Years of Service
User Offline
Joined: 5th Feb 2020
Location:
Posted: 28th Dec 2020 05:14 Edited at: 28th Dec 2020 05:19
Quote: "Well dds is still a big format in size, take a look AT for example palm06 22mb Times 4-5 for pbr!!!"


I don't think you're really reading what we're all saying here. IT'S NOT ABOUT THE FILE SIZE (MEGABYTES) OF THE TEXTURE. None of that matters once the game is compiled and once the texture is actually loaded into memory. What matters is the size of the image in PIXELS (it's dimensions). This determines how much video memory it takes up.

Secondly, if you're using PBR, you don't just have one image (i.e. color), but several images (i.e. color, normal, ambient occlusion, etc.). This will make for a larger file size (again, MEGABYTES).

Quote: "Thats 100mb for one object, You courld have done that with just as good resultat 5-10mb with jpgs."


Again, none of that is going to matter once you complete the game/level and save out your standalone game. Take file formats for 3D objects, as an example. You can import several file types, like OBJ, .X, FBX, etc. However, GameGuru does not use these file types when you export the game. GameGuru has it's own internal file format for 3D files and it will use that instead. As a result, it's not going to matter what the file size (in MEGABYTES) is. What's going to matter is the polygonal count of each model. Likewise, it's not going to matter what the file size (in MEGABYTES) of any image used as the image will be converted to what the game engine (and the video card) require.

I have all My textures in bmp sence its The best quality and then convert to [b]almost lossless jpg.[/b]

I emphasized that last bit because, yes, at 100% it may be near lossless, but it is still lossy nonetheless.

Quote: "Png is Great but too big, and so are most other formats."


Again,
Quote: "FILE SIZE (IN MEGABYTES) DOES NOT MATTER"
. What matters is size in pixels (the dimensions of the image). For example, you don't want to use a 4K image on a very small, barely seen entity as you'll just be consuming more video memory that could be used to store other textures for your game. Again, the amount of video memory a texture consumes HAS NOTHING AT ALL TO DO WITH ITS SIZE IN MEGABYTES. So why settle for an "almost lossless" version of your texture when you can have an absolutely lossless one?

Quote: "Loss at 100% is a DUMB thing to say sence the loss is almost zero that means You cant see The difference with Your naked eye. "


It is not dumb because it is true. There is still loss of information at 100% when using JPG, even if you cannot see it. JPG was intended for web sites, to create smaller files IN MEGABYTES for quick loading. It was never intended for textures and materials for 3D models and real-time 3D games. You ever hear of using the right tool for the job? JOG is NOT the right tool for real-time 3D game engines for a variety of reasons and, again, in case you missed it previously, FILE SIZE IN MEGABYTES DOES NOT MATTER in the completed game.

EDIT -

If you have three textures that are ALL 4096 x 4096 in size (pixels), but are three different formats, such as PNG, JPG, and BMP, they will take up DIFFERENT amounts of space to store them on your hard drive, but will consume the SAME amount of video memory in the running game. The difference, as was pointed out the post above mine, is with the DDS format, which actually allows for the same image to actually take up less video memory.

So, DO NOT confuse how large the file is on your hard drive with how much memory it will consume once it's in video memory. A nicely compressed JPG will consume the same amount of video RAM as a totally uncompressed PNG once in video memory.
Intel i9-109000K 5.10GHz, 64 GB RAM, Nvidia GTX 1080 ti 11GB, Windows 10 64-bit, dual monitor display
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 28th Dec 2020 05:48
hmmmm.... Again I will once more try to make it a simple as possible...

\\\\\
Do NOT use jpg - USE DDS
/////


Instead of wasting time of those trying to help you - Read the above posts and forget jpg - it is not for 3D engines.

lol...

OldFlak....
System Specs
i7-9700K 3.60GHz. ASUS NVidia GeForce GTX 1060 6GB. 32GB Themaltake ToughRam Z-ONE 3600.
Main Screen: HP 27" @1920x1080 - Screens 2\3: Acer 24" @ 1920 x 1080

Windows 10 Pro 64-bit Insider
aka Reliquia
PM
wizard of id
3D Media Maker
18
Years of Service
User Offline
Joined: 16th Jan 2006
Playing: CSGO
Posted: 28th Dec 2020 06:22 Edited at: 28th Dec 2020 06:24
Quote: "You're not correct here. File size (as in how many bytes) has little to do with how much memory an image takes up on your video card. It's all about the actual pixel size of your image (2048 x 2048, 512 x 512, etc.). Therefore, even if a JPG file has a smaller file size (in bytes), it won't have a smaller memory imprint on the video card's memory."



Quote: "If you have three textures that are ALL 4096 x 4096 in size (pixels), but are three different formats, such as PNG, JPG, and BMP, they will take up DIFFERENT amounts of space to store them on your hard drive, but will consume the SAME amount of video memory in the running game."
No, jpeg and PNG will use more video memory.

You are wrong. File size rather compression DOES matter. DDS textures are not compressed again by the video memory. A 1024 x 1024 jpeg image uses 2.4mb actual video memory where as a 1024 x 1024 DDS DTX 1 uses 640k more or less. Resolution of a image does NOT dictate the the amount of memory used alone, file compression (rather compression of the DDS texture) as well and especially true when it comes the DDS compression.

RGB Compressed DXT1 adds 0.5 bpp
RGBA Compressed DXT5 adds 1 bpp
RGB 16bit adds 2 bpp
RGB 24bit adds 3 bpp
Alpha 8bit adds 1 bpp
RGBA 16bit adds 2 bpp
RGBA 32bit adds 4 bpp

Total texture size: width * height * bpp

In other words if you have a DDS texture, 4096 x 4096 RGBA 32bit DXT 5 texture. It would be 83mb video memory, a 4096 x 4096 RGB 24bit DTX 1 texture 58mb video memory. Which means you can have a 2048 x 2048 that uses more video memory due to the DDS compression used. If you add mipmaps, which you have to as gameguru and max require it adds about 33% more video memory.

In other words, texture resolution alone doesn't dictate video memory useage at all. The actual compression and format as well. In other words PNG and jpeg will consume much more memory as it needs to be processed(add more GPU load) and compressed into the raw data the video memory needs were as DDS it is used as is and simply converted to raw data regardless of texture resolution.
Win10 Pro 64bit----iCore5 4590 @ 3.7GHZ----AMD RX460 2gb----16gig ram
Monkey Frog
4
Years of Service
User Offline
Joined: 5th Feb 2020
Location:
Posted: 28th Dec 2020 06:57 Edited at: 28th Dec 2020 07:25
Sigh. You don't read very well, do you. In my examples, I specifically did not compare DDS but gave examples of non-compressed formats, such as JPG, PNG, and BMP. I even stated that DDS was different.

Video memory consumption is determined by the pixel resolution. So much so, that if you have a non-power-of-two image in video memory, it will consume the next size up power-of-two. For example, if you have a game texture that is 120 x 120, it will use 128 x 128 worth of video memory. That's wasted video memory that could be used for or by other textures. So, yes, pixel size does indeed determine how much video memory is used. DDS, though, as pointed out, compresses the data to help with this (which is why I specifically was using JPG, PNG, and BMP in my example - which you conveniently ignored).

In other words, to make it simple so you can understand it, I was talking about uncompressed textures to make a point about pixel size. Compression changes things. But that still does not mean you should use JPG for real-time 3D textures.

Here's something from a few sources:

Quote: "The rate at which graphical images are processed on screen though actually has nothing whatsoever to do with file size. Graphics processing is all about texture memory, not about storage space.

Texture memory is always determined by the amount and depth of the actual pixels in the image, not the bits and bytes in which the file is stored. The amount of pixels in an image times the number of bits in each pixel will always equal the amount of texture memory the image uses, no matter what. Its file size can vary depending on in what format it is saved, but its actual texture memory consumption when the image is in view will always be the same."


Quote: "HOW TO CALCULATE TEXTURE MEMORY

Determining how much texture memory an image will consume is fairly straight forward. It's basically a count of the total amount of pixels in the image, multiplied by the number of bits in each pixel.

RGB color images without transparency have 24 bits per pixel, and those with transparency have 32 bits per pixel. So, for example, if you've got a non-transparent color image that is 1024x1024 pixels, here's how the math would break down:

1024x1024 = 1,048,576 total pixels
1,048,576 x 24 bits in each pixel = 25,165,824 total bits in the image
25,165,824 bits / 8 bits in every byte = 3,125,728 bytes, or precisely 3 megabytes

Pretty simple math. A 1024x1024 image (sans transparency) will always use exactly 3 megabytes of texture memory. That's regardless of whether or not the file is compressed for storage. As far as the graphics card is concerned, an image is just a collection of pixels to be drawn, not a file to be saved."


The above does not take into account compression, such as DDS. But it does speak to my point - it's not the file size (storage size) of the image, but the AMOUNT OF PIXELS (multiplied by the bits per pixel) that determine how much video memory is used. Compression then comes in to help further with this. So, the point still stands - DON'T USE JPG BECAUSE IT OFFERS NO ADVANTAGES FOR REAL-TIME 3D. And since it is a lossy file format, it should be avoided compared to other, lossless formats.
Intel i9-109000K 5.10GHz, 64 GB RAM, Nvidia GTX 1080 ti 11GB, Windows 10 64-bit, dual monitor display
wizard of id
3D Media Maker
18
Years of Service
User Offline
Joined: 16th Jan 2006
Playing: CSGO
Posted: 28th Dec 2020 07:43
Your words were

Which is quoted and then you changed
Quote: ""You're not correct here. File size (as in how many bytes) has little to do with how much memory an image takes up on your video card. It's all about the actual pixel size of your image (2048 x 2048, 512 x 512, etc.). Therefore, even if a JPG file has a smaller file size (in bytes), it won't have a smaller memory imprint on the video card's memory.""



to

Quote: "I don't think you're really reading what we're all saying here. IT'S NOT ABOUT THE FILE SIZE (MEGABYTES) OF THE TEXTURE. None of that matters once the game is compiled and once the texture is actually loaded into memory. What matters is the size of the image in PIXELS (it's dimensions). This determines how much video memory it takes up.

Secondly, if you're using PBR, you don't just have one image (i.e. color), but several images (i.e. color, normal, ambient occlusion, etc.). This will make for a larger file size (again, MEGABYTES)."



So why did you need to edit your post. ?

Quote: "What matters is the size of the image in PIXELS (it's dimensions). This determines how much video memory it takes up."

And again even with the edit you are wrong, a 16 bit bmp will use less memory then a 24 bit bmp, irrespective of resolution the pixel density
(the bits per pixel) will change how much video memory you will use.

Secondly I mentioned that with DDS what you get file size wise is pretty much what you get video memory wise, as you made a statement that is contrary to that irrespective if you intended with regards to jpeg, bmp, and png.

PAY ATTENTION, RESOLUTION DOES NOT DICTATE VIDEO MEMORY USAGE ALONE

so, so, so done with this. !
Win10 Pro 64bit----iCore5 4590 @ 3.7GHZ----AMD RX460 2gb----16gig ram
Monkey Frog
4
Years of Service
User Offline
Joined: 5th Feb 2020
Location:
Posted: 28th Dec 2020 08:25 Edited at: 28th Dec 2020 08:47
I didn't change the text at all. I added (see below the "Edit -"). So, you can stop lying now.

Quote: "And again even with the edit you are wrong, a 16 bit bmp will use less memory then a 24 bit bmp, irrespective of resolution the pixel density (the bits per pixel) will change how much video memory you will use."


Again, you show that A) you don't actually read what someone has written, B) you have a serious comprehension issue, or C) you like to hear the sound of your own (typed) voice. This is EXACTLY what I posted:

Quote: "Determining how much texture memory an image will consume is fairly straight forward. It's basically a count of the total amount of pixels in the image, multiplied by the number of bits in each pixel."


Do you see what that says? Can you comprehend it? The amount of memory any image will use is exactly determined by THE TOTAL AMOUNT OF PIXELS in the image, MULTIPLIED BY THE NUMBER OF BITS. So, yes, a 16 bit image vs. a 24 bit image vs. a 32 bit image will use different amounts of video memory. But this is, once again, DETERMINED BY THE AMOUNT OF PIXELS, which is then multiplied by the BITS PER PIXEL.

My original statements were correct. It's NOT the file/storage size of the image (how many megabytes the image is on a hard drive), but the SIZE OF THE IMAGE IN PIXELS (and, yes, multiplied by bits per pixel).

A image that is 256 x 256 at 24 bits will consume the same amount of video memory regardless of whether it's a JPG, a PNG, a TIFF, a BMP, or whatever (not counting modern video compression methods, such as DDS). BUT ... a 256 x 256 at 24 bits PNG, TIFF, BMP, etc. will eat up differing amounts of storage space. THAT was always the point. And I was pointing out that Mr. Love should NOT confuse STORAGE SPACE with how much video memory an image will take up.

Quote: "so, so, so done with this. !"


One can only hope ...
Intel i9-109000K 5.10GHz, 64 GB RAM, Nvidia GTX 1080 ti 11GB, Windows 10 64-bit, dual monitor display
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 28th Dec 2020 10:07 Edited at: 28th Dec 2020 10:09
"IT'S NOT ABOUT THE FILE Size"

Ohh yes it is, IF You are a serious Gamedeveloper size matters....
And If I have The opinion that My games is running smooth with jpg. Then I use jpg.
End of story!
Stop being mediocre, be Yourself...
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 28th Dec 2020 10:47 Edited at: 28th Dec 2020 10:48
@Mr Love:
have a .... I love 's.
I think if your happy to use jpg, you got for it, but maybe this isn't the engine for you. For this engine, dds is better, jpg isn't.
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++ VS2019, SQL, PL-SQL, JavaScript, HTML, Three.js, others
Hardware: ULTRA FAST Quad Core Gaming PC Tower WIFI & 16GB 1TB HDD & Win 10 (x64), Geforce GTX1060(3GB). Dell Mixed Reality VR headset, Aerodrums 3D
Avenging Eagle
19
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: UK
Posted: 28th Dec 2020 11:03 Edited at: 28th Dec 2020 11:05
Quote: "Ohh yes it is, IF You are a serious Gamedeveloper size matters"


I guess that's why COD: Modern Warfare (2019) is 250GB, Infinity Ward really care about the size of their downloads...

Quote: "And If I have The opinion that My games is running smooth with jpg. Then I use jpg."


Your opinion does not outweigh objective truth; jpg is not the best tool for job. If you haven't figured that out after 15 years of game developer then you have no right to call yourself a "serious Gamedeveloper". But look, if you like jpg, go ahead and use it. When you run out of video memory, you'll know why. In my experience though, you're more likely to run out of actual system memory on a Game Guru game than video memory.

At the risk of starting another war between WOI and Argent, and whoever else wants to join, I have a question: when a texture is loaded, does it exist in both system memory and video memory? How do you work out how much system memory a texture takes up? Or is it exactly the same as how you work out its VRAM cost?

AE
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 28th Dec 2020 12:31
I think the engine ends up converting/downsizing textures to its internal format, so.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 28th Dec 2020 13:18 Edited at: 28th Dec 2020 13:19
Quote: ""IT'S NOT ABOUT THE FILE Size"

Ohh yes it is, IF You are a serious Gamedeveloper size matters....
And If I have The opinion that My games is running smooth with jpg. Then I use jpg.
End of story!"


Oh boy - you can't be serious - lol - all that wasted help in this thread.

OldFlak....
System Specs
i7-9700K 3.60GHz. ASUS NVidia GeForce GTX 1060 6GB. 32GB Themaltake ToughRam Z-ONE 3600.
Main Screen: HP 27" @1920x1080 - Screens 2\3: Acer 24" @ 1920 x 1080

Windows 10 Pro 64-bit Insider
aka Reliquia
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 28th Dec 2020 14:05 Edited at: 28th Dec 2020 14:07
Jpg's lose quality every time you edit and save.
Dont take my word for it try it.
Load a JPG in and save it .. then load it in and save it again .
You will also notice the file size decrease after each clone.





Png's however keep their quality and size much better.
So if you want quality and small try that.



The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 28th Dec 2020 14:12
And you can even make png smallest and kipping quality using TinyPNG
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Monkey Frog
4
Years of Service
User Offline
Joined: 5th Feb 2020
Location:
Posted: 28th Dec 2020 17:18
Quote: ""IT'S NOT ABOUT THE FILE Size"

Ohh yes it is, IF You are a serious Gamedeveloper size matters....
And If I have The opinion that My games is running smooth with jpg. Then I use jpg.
End of story!"


Sigh ...
Intel i9-109000K 5.10GHz, 64 GB RAM, Nvidia GTX 1080 ti 11GB, Windows 10 64-bit, dual monitor display
Bored of the Rings
GameGuru Master
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location: Middle Earth
Posted: 28th Dec 2020 18:21
what a time waster, go use ya jpgs, and wotsit off
Professional Programmer: Languages- SAS (Statistical Analysis Software) , C++ VS2019, SQL, PL-SQL, JavaScript, HTML, Three.js, others
Hardware: ULTRA FAST Quad Core Gaming PC Tower WIFI & 16GB 1TB HDD & Win 10 (x64), Geforce GTX1060(3GB). Dell Mixed Reality VR headset, Aerodrums 3D
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 28th Dec 2020 21:10 Edited at: 28th Dec 2020 21:10
Have You gone mad? All I wanted was a simple answer AND NOT A LECTURE.
Stop being mediocre, be Yourself...
Monkey Frog
4
Years of Service
User Offline
Joined: 5th Feb 2020
Location:
Posted: 28th Dec 2020 21:15
Actually, you did get a simple answer - don't use JPGs. But you came back and insisted that it was fine, that JPGs are not only preferred, but somehow better (due to file size). So, people responded to that, informing you why that is not so. If anyone has gone "mad" here, it's the one that ignored all the advice given you as to why you should not be using JPGs for real-time 3D projects ...
Intel i9-109000K 5.10GHz, 64 GB RAM, Nvidia GTX 1080 ti 11GB, Windows 10 64-bit, dual monitor display
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 28th Dec 2020 21:22
Well looks like you got both

To your original question don’t use jpg for normal textures - it doesn’t have the fidelity to instruct the shader calcs that dds and png do.

For all textures it’s best to use dds format with GG as others have outlined. If you don’t GG will convert internally to dds and add MIP maps anyway. But will lose detail on converting. Better to just do it up front.

Or if you’re not bothered just use jpgs as that’s what you want to do anyway irrespective of ‘received wisdom’. Not sure why you asked the question to be honest if you’re not bothered about the answer.

Cheers.
GPU: GeForce RTX 2070 SUPER PassMark: 18125
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 28th Dec 2020 21:43 Edited at: 28th Dec 2020 21:50
"Actually, you did get a simple answer - don't use JPGs."

Good answer if it was The question, but it wasnt.


Thanks for info cybernescence!
Stop being mediocre, be Yourself...
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 28th Dec 2020 21:50
This post has been marked by the post author as the answer.
The question was does bump mapping work with jpegs and the answer is a resounding no, your bumps won't be in the right places.
Been there, done that, got all the T-Shirts!
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 28th Dec 2020 21:51 Edited at: 28th Dec 2020 21:53
and this thread is why some GG users will NEVER be professional game devs

Hot Tip: If you post on a forum asking for advice, then expect advice. It won't always be what you expect, it won't always be what you like, but if you ask for it, you're gonna get it.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 28th Dec 2020 21:53
"Professional" just means you got paid for doing something, doesn't actually mean you are any good at it!
Been there, done that, got all the T-Shirts!
PM
Monkey Frog
4
Years of Service
User Offline
Joined: 5th Feb 2020
Location:
Posted: 28th Dec 2020 21:54
Quote: "Good answer if it was The question, but it wasnt."


The question was:

Quote: "Bump mapping works with jpg?"


The answer was:

Quote: "don't use JPGs."


Why? Because, no, they don't. Use DDS instead. As was stated ... repeatedly ... but you defended wanting to use JPGs and we responded why you should not. So, yes, it was the correct answer. Have fun, though.
Intel i9-109000K 5.10GHz, 64 GB RAM, Nvidia GTX 1080 ti 11GB, Windows 10 64-bit, dual monitor display
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 28th Dec 2020 22:00
Tried to load a DDS DXT888-8 but The objects was just black??

Any ideas?
Stop being mediocre, be Yourself...
mikeven
12
Years of Service
User Offline
Joined: 31st Dec 2011
Location:
Posted: 28th Dec 2020 22:27
Hi everybody,

I am a hobbyist in 3D digital art and I am always glad to learn from advanced users sharing their knowledge in this forum.
I want to share with you three GG Max (alpha 3) projects :
- the first one : 50 instances of a multi-textured mesh with textures in DDS (DX5 format).
- the second one : 50 instances of a multi-textured mesh with textures in PNG format.
- the third one : 50 instances of a multi-textured mesh with textures in JPG format.

For each project, I tried to replicate exactly the same conditions to allow a fair comparison.
DDS and JPG textures were generated using the PNG ones. Paint.Net was used for that purpose.

My Hardware : CPU Intel Core i7-8700K (6 cores) : 16 GB RAM - GPU Radeon RX 580 : 8192 MB VRAM GDDR5 2000 MHZ
GG MAX + Folder "Documents" installed on a SSD.

My OS : Windows 10 Family Edition (version 1909)

This is the link where you can access securely and anonymously those shared projects :
https://1drv.ms/u/s!AjokN1FU3jK1lAuZfH9Lm94hXxrF?e=r65syd





PM
KeithC
Senior Moderator
19
Years of Service
User Offline
Joined: 27th Oct 2005
Location: 1x1x1 Cube
Posted: 28th Dec 2020 22:33
Ah yes; the age old question: "Does size really matter?"
Intel Core i7-4820K CPU @ 3.70GHz, 16GB RAM, NVIDIA GeForce GTX 770
PM
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 28th Dec 2020 22:46
Quote: "Ah yes; the age old question: "Does size really matter?" "

There be medication for that....

Quote: "Tried to load a DDS DXT888-8 but The objects was just black??

Any ideas?"

Definately No Comment - It would be pointless, as you won't like or listen to the answer

Have fun

OldFlak....
System Specs
i7-9700K 3.60GHz. ASUS NVidia GeForce GTX 1060 6GB. 32GB Themaltake ToughRam Z-ONE 3600.
Main Screen: HP 27" @1920x1080 - Screens 2\3: Acer 24" @ 1920 x 1080

Windows 10 Pro 64-bit Insider
aka Reliquia
PM
Mr Love
19
Years of Service
User Offline
Joined: 9th Jun 2005
Location: Sweden
Posted: 28th Dec 2020 23:04
"as you won't like or listen to the answer"

If I like it I listen..

Stop being mediocre, be Yourself...
KeithC
Senior Moderator
19
Years of Service
User Offline
Joined: 27th Oct 2005
Location: 1x1x1 Cube
Posted: 28th Dec 2020 23:28
Quote: "There be medication for that...."


Intel Core i7-4820K CPU @ 3.70GHz, 16GB RAM, NVIDIA GeForce GTX 770
PM
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 29th Dec 2020 00:16 Edited at: 29th Dec 2020 00:17
Quote: "Tried to load a DDS DXT888-8 but The objects was just black??

Any ideas? "


What software by the way are you using to make your DDS or convert to DDS? I use a Photoshop plugin:
https://developer.nvidia.com/nvidia-texture-tools-exporter
Store Assets - Store Link
Free Assets - Resource Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 29th Dec 2020 11:06 Edited at: 29th Dec 2020 11:11
Quote: "Tried to load a DDS DXT888-8 but The objects was just black??

Any ideas?"


Remove any reference to a texture in your X file and assign the texture with the FPE file


https://www.getpaint.net/



Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-9700K @4.2GHz - 64GB DDR4 RAM - GeForce RTX 2070 SUPER 8GB - 2TB NVe, 1TB NVe, 2TB Hybrid Data Drive
Test PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Laptop - Helios 300 Predator - i7 7700HQ - 32GB - Nvidia GTX1060 6GB - 525GB M2 - 500 SSD - 17.3" IPS LED Panel - Windows 10 Pro x64
Asset Manager
Wolf
Forum Support
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 4th Jan 2021 16:03 Edited at: 4th Jan 2021 16:05
Quote: "Tried to load a DDS DXT888-8 but The objects was just black??"


Use DXT1 to 5 compression. If you are having trouble with your conversion, paint.net is a free tool.
DXT 3 to 5 are decent for textures with transparency, DXT1 has the lowest file size and largest compression rate. I use it for most of my textures.



-Wolf

Login to post a reply

Server time is: 2024-12-04 09:08:02
Your offset time is: 2024-12-04 09:08:02