GithubHelp home page GithubHelp logo

charlierobin / small-far-away Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 1.45 MB

A simple suite of level of detail plug-ins for Cinema 4D.

Python 81.42% C 7.55% ReScript 11.03%
cinema-4d-plugin cinema-4d

small-far-away's Introduction

Small, Far Away

A simple suite of level of detail plug-ins for Cinema 4D. Implemented as tags. Some are applied to any object type, others only work when applied to particular object types, some only work when there is a Cinema 4D “Display” tag applied.

New notes as of January 2022:

At some point the previous versions of these will have stopped working when Cinema 4D went from Python 2 to Python 3.

I’ve now updated them (basically, some small changes mostly to do with Python iterators/dicts) and tested with my version of Cinema 4D R25.117 on Macintosh.

The EnhancedOpenGLController is no more, as Enhanced OpenGL is no longer a thing in Cinema 4D.

The Polygon Reduction tag used to work with the reduction deformer, but that is also no longer around, so I've changed it to work with the Polygon Reduction Generator instead.

As mentioned, I’m only able to test this on my system and with the version of Cinema 4D which I’m using, which means I’ve no idea what the impact will be on older releases.

Object Controller Tag

Swaps out higher polygon count objects and replaces them with lower count versions. Can be applied to any object type.

Instance Controller Tag

As above, but only works when applied to a Cinema 4D instance. Changes the source of the instance.

Visibility Controller Tag

Can be applied to any object type. Turn off generators/visibility as objects get further away from the camera.

Polygon Reduction Controller

Apply increasingly aggressive polygon reduction strength as distance between object and camera increases. Only works when applied to a Polygon Reduction object generator.

Texture Controller Tag

Turn off materials/textures as objects get further away from the camera. Needs the Cinema 4D Display tag on the same object/hierarchy.

Enhanced OpenGL Controller Tag

Turn off enhanced OpenGL features for objects more than a certain distance away from the camera. Needs the Cinema 4D Display tag on the same object/hierarchy.

Shading Mode/Style Controller

Also requires the Cinema 4D Display tag on the same object/hierarchy. Allows simpler/faster shading styles to be applied to objects as they get further away.

Level of Detail Controller

Applied to any object with a “Display” tag. Sets objects further away to display with a lower level of detail.

Some of the tags operate using minimum distance/minimum value/maximum distance/maximum value, scaling the actual reduction value in between the minimum and maximum. Others operate using levels/distance bands, so a particular setting is only applied when between the distances specified by that level.

small-far-away's People

Contributors

charlierobin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sergey041963

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.