npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hyper3d

v0.0.1

Published

High-end WebGL renderer for three.js

Downloads

4

Readme

HYPER3D WebGL Renderer

Examples — Documentation — Roadmapjsdo.itで試す

HYPER3D is a high-end (unofficial) renderer for three.js.

Hyper3D is still at a very early stage of development. You might observe an unexpected behavior including distorted image, browser crash, peformance breakdown, and shader compilation failure. APIs may need to change over time.

Features

  • Modern rendering engine
    • Physically based rendering
    • Roughness-metallic material workflow with support for custom shaders
    • High dynamic range rendering
    • High-quality post-effects
  • Development support
    • Includes TypeScript definition
    • Integrated GPU Profiler

More features are coming! See Roadmap.

Supported three.js Objects

Following three.js objects can safely be used with Hyper3D.

  • Mesh, SkinnedMesh
  • Geometry, BufferGeometry
    • Current limitation: when using a Geometry, calling dispose() on it doesn't reclaim memory.
  • PerspectiveCamera
  • AmbientLight, DirectionalLight, PointLight
    • Current limitation: semantics of PointLight's parameters differs significantly. Recommended to use Hyper.PointLight instead for future compatibility.
    • Current limitation: shadowBias and shadowMapSize is hardcoded.
    • Shadow can be rendered by setting castShadow to true. However, most parameters related to the shadow rendering are computed automatically and cannot be overrided.
    • shadowDarkness is not supported because it doesn't have a physical meaning.
  • Texture, CubeTexture
    • Current limitation 1: texture parameters are not respected
    • Current limitation 2: compressed textures are not supported
  • MeshBasicMaterial, MeshPhongMaterial
    • Current limitation: transparency is not supported at all. Vertex color is not supported.
    • Colored specular reflection, wireframe, lightMap, aoMap is not supported. Wireframe is not supported.
    • specularMap is treated as a roughness map.
    • Environment maps are not supported. Use Hyper.ReflectionProbe instead.
    • Most of the properties defined in the base class Material are not supported.

Hyper3D-specific Objects

  • Hyper.WebGLHyperRenderer
  • Hyper.ReflectionProbe (inherits from THREE.Object3D)
    • Current limitation: positional probe is not supported.
  • Hyper.Material
    • Current limitation: transparency is not supported at all. discard; still works
    • This class allows you to write a custom shader that generates material parameters like m_albedo and m_roughness. This itself cannot be used as a material. It should be instantiated by creating Hyper.MaterialInstance.
  • Hyper.MaterialInstance (inherits from THREE.Material)
  • Hyper.PointLight (inherits from THREE.PointLight)
    • Current limitation: sized lights are not supported.

Building

Before building Hyper3D, the following programs must be installed:

Prepare

# Clone the repository (you can just download ZIP instead)
git clone https://github.com/Hyper3D/hyper3d.git
cd hyper3d

# Install dependencies
npm install

# Download TypeScript definitions
npm run-script tsd-install

Build as standalone JS library

npm run-script build

hyper3d.js and hyper3d.min.js are generated in the build directory. You can use them like this:

<script type="application/javascript" src="three.min.js"></script>
<script type="application/javascript" src="hyper3d.min.js"></script>

Build as npm package

If you intend to use Hyper3D on Browserify-based apps, you might want a npm package instead of a simple JS file. In this case, run the following command:

npm run-script lib

# ..or, rebuild automatically whenever a source file was modified
# npm run-script watch

After running these command this library can be used in your project by using npm link.

Contributing

Contributions are always welcome. Feel free to talk to the developers.

License

MIT.