Code Monkey home page Code Monkey logo

Comments (12)

Banbury avatar Banbury commented on August 18, 2024

Shouldn't be too hard. I'll have a look at it.

from ldr-importer.

Banbury avatar Banbury commented on August 18, 2024

Sorry for that. It is harder than I thought. The 'logo' on stud-logo is no mesh but just simple lines. These lines cannot be rendered in Blender. I'll see if I can find another solution.

from ldr-importer.

MetallianFR68 avatar MetallianFR68 commented on August 18, 2024

Look at this forum :
http://www.eurobricks.com/forum/index.php?showtopic=82225
LDraw2Lws software allows to add the Lego LOGO on the studs
But it's LWO format
I'm no programmer but this could perhaps give an idea on how to achieve that.
I would love to see an option (just an option !) in LDR Importer to add the LOGO on import.

from ldr-importer.

Banbury avatar Banbury commented on August 18, 2024

I'm currently trying to put a bump texture on the stud. Everything else would create too many faces.

from ldr-importer.

MetallianFR68 avatar MetallianFR68 commented on August 18, 2024

I agree because I noticed a huge performance drop when importing big models (LEGO MODULAR) while activating the LOGO on the stud using the previously mentioned technique

from ldr-importer.

Banbury avatar Banbury commented on August 18, 2024

Sadly this sounded easier than it actually is. I couldn't find a good way to put a texture on the studs.

from ldr-importer.

rioforce avatar rioforce commented on August 18, 2024

You'd have to UV map every stud and add a photo. That may be impossible without mesh creation. Too bad we cannot make it where it would only add them on top-studs, but then if you wanted to smash the model, it wouldn't look so good. If you could possibly get it to work (even with mesh) we could give a warning in the tooltip saying it adds extra mesh and it will slow down Blender. LEGO studs are helpful, especially in small models. :)

from ldr-importer.

juraj3579 avatar juraj3579 commented on August 18, 2024

Hi. This was me I asked about the logo for the studs. I found this workaround with the LDraw2Lws some time ago and wrote this tutorial on eurobricks. As the logos are part of mesh, the performance surely drops, but I think, that the bigger problem is the quite bad topology of the mesh comming from the lwo import. I tried your script and the mesh was much better.

In material library I'm using right now are also materials with the logo as bump map. But you have to assing the material to every brick manually. They also work only with proper scale and world coordinates (it was used for in blender modelled bricks only). I think, it will be pretty hard to get it work with the import script.

So, I'll vote for the logos as part of the mesh as an option within import (if it's possible)

from ldr-importer.

MinnieTheMoocher avatar MinnieTheMoocher commented on August 18, 2024

I think this issue can be resolved very easy.
tchang has already prepared a high-res stud logo file for exactly this purpose:

http://jc-tchang.philohome.com/manuel/part_hd.htm#studlogo_tchang

until this is contained in the official LDRAW library (which is about to happen at some time
in the future but not SOON because it's still being discussed), you could
deliver this file together with your importing script,
and if the user chooses the option to replace studs by studs-with-logo,
then you use this file.

from ldr-importer.

rioforce avatar rioforce commented on August 18, 2024

Thanks for your input, we may try that. Although, we'd have to keep the stud data in the script itself, because not everyone has download the stud file and put it in their LDraw directory. Any thoughts, other developers?

from ldr-importer.

MinnieTheMoocher avatar MinnieTheMoocher commented on August 18, 2024

my suggestion is:
you should deliver the logoed stud file simply together with your import_ldraw.py
and put it somewhere next to it. if a user wants that instead of normal studs, you simply replace every occurrence
of stud.dat by the logoed file.
individual users should not have to download the logoed stud files on their own.
they would come together with your python importer script.

from ldr-importer.

le717 avatar le717 commented on August 18, 2024

Linking #70 here as it contains some info we may be able to use.

from ldr-importer.

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.