Giter VIP home page Giter VIP logo

Comments (20)

SE2Dev avatar SE2Dev commented on July 28, 2024

Which game are you checking on?

from blender-cod.

gmzorz avatar gmzorz commented on July 28, 2024

Actually, scrap what i said, i thought it would work but i didn't test it out myself
i am having an issue with the shading on xmodels, in cod4

image

what i meant with phong shading ^ you can clearly see the edges, while it's supposed to look shaded
had to use a quick example, but this happens on all models i export using blender-cod.

from blender-cod.

SE2Dev avatar SE2Dev commented on July 28, 2024

What is the name of that model, and which version of Blender-CoD are you using?

from blender-cod.

0x8080 avatar 0x8080 commented on July 28, 2024

@SE2Dev It's a giant M40a1

from blender-cod.

gmzorz avatar gmzorz commented on July 28, 2024

it's just the m40 i had to compile into a mod, replaced me_concrete_barrier real quick, happens with all models i compile, i'm using the latest version from this page.
you can see it on this model as well, which is a custom one
just anything made with blender shows up with the edges clearly visible image

from blender-cod.

0x8080 avatar 0x8080 commented on July 28, 2024

Why is there a PSO on an M40?

from blender-cod.

CoDEmanX avatar CoDEmanX commented on July 28, 2024

If I understand correctly, smooth shading using vertex normals is desired here? Is the mesh shading set to smooth (on faces) in Blender?

from blender-cod.

SE2Dev avatar SE2Dev commented on July 28, 2024

Can you show me a screenshot of the Blender-CoD add-on page in Blender so I know exactly which version you're using?

I need to know if you're using a development version or an older version.

from blender-cod.

gmzorz avatar gmzorz commented on July 28, 2024

yes, all faces are set to smooth
here's the one im using
image

Here's what it looks like in blender:
image

and ingame:
image

from blender-cod.

CoDEmanX avatar CoDEmanX commented on July 28, 2024

Looks like it exports the face normals instead of the vertex normals.

Well, that's the super old version 0.3.5, which is from 2012. It is also the only release available on GitHub.

Please try the latest code from master branch. @SE2Dev or development branch?

from blender-cod.

CoDEmanX avatar CoDEmanX commented on July 28, 2024

0.3.5 seems to export vertex normals:
https://github.com/CoDEmanX/blender-cod/blob/blender_26/io_scene_cod/export_xmodel.py#L536

But since it looks like face normals in-game, there might actually be some problem with Blender. For instance, the vertex normals might require to be updated if to_mesh() is used to triangulate...

from blender-cod.

gmzorz avatar gmzorz commented on July 28, 2024

this is what i get from the master branch, when i try to tick the checkbox in add-ons
image

from blender-cod.

CoDEmanX avatar CoDEmanX commented on July 28, 2024

Did you use Download Zip?

image

That's not going to work. You need to download the repo, extract the content and zip the subfolder io_scene_cod. That newly created archive should install in Blender. Alternatively, you could delete the existing folder io_scene_cod in %appdata%\Blender Foundation\Blender\2.78\scripts\addons and place the new one there.

from blender-cod.

SE2Dev avatar SE2Dev commented on July 28, 2024

This should work for the time being.
blender-cod_beta.zip

from blender-cod.

gmzorz avatar gmzorz commented on July 28, 2024

image
sorry for the late reply, been busy with alot of things, this is what happens when i export as xmodel_export. selected all objects in the scene

from blender-cod.

SE2Dev avatar SE2Dev commented on July 28, 2024

I assume your model has a skeleton, materials, uv maps, etc.
You should just need to select the model and choose export from the menu. If that doesn't work, try using this version: io_scene_cod_beta2.zip

from blender-cod.

gmzorz avatar gmzorz commented on July 28, 2024

not sure if i'm doing it right..
image

here's the process:
https://streamable.com/eawkj

from blender-cod.

SE2Dev avatar SE2Dev commented on July 28, 2024

Ah, I see what happened. When I rewrote the export logic, I made it so that it'd look only for models that had skeletons, and forgot to restore the ability to automatically generate the default skeleton for static models. I still need to re-implement this feature.

In the mean time, you should be able to resolve this issue by adding a skeleton with a single bone (called tag_origin) and linking it to the model.

from blender-cod.

gmzorz avatar gmzorz commented on July 28, 2024

that actually makes alot of sense, thanks alot, i'll try it out asap

from blender-cod.

SE2Dev avatar SE2Dev commented on July 28, 2024

I'm going to close this issue as it appears to have gotten somewhat off topic, and the original issue appears to have been resolved.

from blender-cod.

Related Issues (20)

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.