Giter Site home page Giter Site logo

theverat / normalmapgenerator Goto Github PK

View Code? Open in Web Editor NEW
416.0 52.0 51.0 1.69 MB

A simple program that converts images into normal maps

License: GNU General Public License v3.0

Shell 1.09% C++ 96.67% QMake 2.24%
normalmap c-plus-plus 3d-graphics texturing texture generator

normalmapgenerator's People

Contributors

azagaya avatar theverat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

normalmapgenerator's Issues

QCoreApplication::UnicodeUTF8 is deprecated

This enum type used to define the 8-bit encoding of character string arguments to translate(). This enum is now obsolete and UTF-8 will be used in all cases. So remove all instances of QCoreApplication::UnicodeUTF8

Faile to compile in linux, fabs not defined.

Hi, i've just tried to compile in linux and failed, with error "fabs not defined" in file ssaogenerator.cpp. I included cmath in that very same file and works fine. I've seen this in previous issues, is there a reazon why this fix is not included in master?

Doubt about average calculation in SpecularMap

Hi,
I was looking at the code, and i saw that in specular map, the average calculation was like this:

   double multiplierSum = (redMultiplier + greenMultiplier + blueMultiplier  + alphaMultiplier );
    if(multiplierSum == 0.0)
        multiplierSum = 1.0;
//some other code
    if(mode == IntensityMap::AVERAGE) {
       //take the average out of all selected channels
        intensity = (r + g + b + a) / multiplierSum;
    }

But imho this is not an average, because if every channel has a multiplier of let say 0.1, then the sum is going to be 0.4, and you are going to divide the whole sum by 0.4. Shouldn't the division be the sum of each channel divided by the ammount of channels used?
I really don't know how specular maps are calculated, so it's just a question.. i can fix it if it is a bug.

Build without qt

Hi,

I'd like to have a release based on command line level in order to generate normal maps without the gui. Is that possible?

Thanks!

crash on Ubuntu 14.04

(v0.3.2)
On Ubuntu 14.04, as soon as I click on a tab, it's an instant crash with the following error message in the terminal :

./NormalmapGenerator: symbol lookup error: ./NormalmapGenerator: undefined symbol: _ZN7QString13toUtf8_helperERKS_

compilation error

Hi i tried building on manjaro (arch) linux but got errors. I did qmake NormalmapGenerator.pro; make; wit this errors:

src_viewer/camera.cpp: In constructor ‘Camera::Camera()’: src_viewer/camera.cpp:5:14: error: ‘M_PI’ was not declared in this scope xAngle = M_PI / 4.0; ^~~~ src_viewer/camera.cpp: In member function ‘void Camera::rotateY(float)’: src_viewer/camera.cpp:19:27: error: ‘fabs’ was not declared in this scope if(fabs(yAngle + angle) < M_PI / 2.0) ^ src_viewer/camera.cpp:19:31: error: ‘M_PI’ was not declared in this scope if(fabs(yAngle + angle) < M_PI / 2.0) ^~~~ src_viewer/camera.cpp: In member function ‘const QMatrix4x4& Camera::toMatrix()’: src_viewer/camera.cpp:42:49: error: ‘sin’ was not declared in this scope position = QVector3D(radius * sin(xAngle) * cos(yAngle), ^ src_viewer/camera.cpp:42:63: error: ‘cos’ was not declared in this scope position = QVector3D(radius * sin(xAngle) * cos(yAngle), ^ make: *** [Makefile:632: camera.o] Error 1

Ideas for 3D preview

This is a collection of ideas and possible features for the 3d_preview branch.

Usability:

  • Show a message when OpenGL 4.x is not supported by the system Done: 55e80fe
  • Navigating with WASD and moving the light with IJKL is overly complicated in my opinion. I think it would be enough if the user can rotate the cube with the mouse, camera and light don't need to be movable. Done.
  • Rename "partition frequency" to "mesh resolution" Done.

Features:

  • It should be possible to disable the influence of each map (for example to study only the normalmap influence without any displacement) Done.
  • The preview should start when the first map is generated, it should not require all three maps Done.
  • I think the background should be black or grey, because currently it doesn't match the lighting in the scene (there's no purple environment light as far as I can tell) Done.
  • Smooth shading on the mesh possible?
  • Use a shading model like Phong, or even PBR?

Bugs:

  • When a new image is loaded, the old maps are still used in the preview (they are only replaced when new maps are generated) Done.
  • There are huge differences in lighting between enabled and disabled normalmap, maybe there's a bug in some vector transform? Done.

No DDS

Why there's no support for basic texture format?

Specular to Roughess

Hello
Can you add Invert parameter to Specular map for use it as Roughness map?

Unnecessary computations

When dropping an image into the preview window, the map for the current window type is computed, then the view switches to the "input image" tab, and when the user goes back to the map that was already computed, it is computed again.

small image + normal map size 10% -> crash

very small white image:
4525

Load the attached image, then set 10% in the "normal map size" and the app will crash
Same thing when doing a queue process with the same 10% parameter
I guess there is a small issue when generated normal map is too small

Normal map is "shifted"

Hello
Thanks for this great project.
I've noticed something weird: the normal map is kind of 'shifted' (few pixels) compared to the real texture.
When light is moving over it, the texture looks like distorted because of that.

a linux 0.4.5 build

I'm loving this app so I got to ask...
any plans for a linux 0.4.5 build? :) pls :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.