Model's quality

#19
by Bidram - opened

Hello!
I tried the model (Q5_K_M), but I encountered some issues:

  1. Quality: I asked the model to generate an AK-47 model using Three.js (with thinking turned off). The generated HTML file had several problems, including runtime errors and animation issues.

  2. Token efficiency: I asked the model to do the same thing (generate an AK-47 model) with thinking turned on, but it used over 20K tokens without producing any results. I eventually had to terminate the generation manually.

Could these issues be related to my parameter settings? What are the best parameter settings for this model?

it does render, although the weapon might not look perfect in every case. i haven't tested many different prompts for this specific object, but i've seen the model generate weapons with pretty good quality, especially in voxel style.

i usually use the q8 version with the default settings from the readme.

for very specific objects, the way you describe the structure and details can make a big difference, so sometimes it's worth experimenting with different prompts.

also, i'd recommend not cutting the thinking short. depending on the complexity, it can go up to around 74k tokens, and truncating it too early can sometimes prevent the final scene from rendering properly.

here's an example. this was literally the first prompt i tried. i just asked gemini in the browser to generate a detailed three.js prompt for an ak-47 and used it directly, without optimizing or adjusting anything. the model rendered it on the first attempt, although with some visual issues.

prompt

Generate a single-file HTML script using Three.js and OrbitControls that renders a highly accurate, stylized low-poly 3D model of a classic AK-47 assault rifle.

The model must be built procedurally using basic 3D primitives grouped together, strictly adhering to the following visual design, proportions, and material aesthetics:

  1. Overall Proportions & Hierarchy:
  • The entire model must be unified into a single parent group, with its pivot point centered around the receiver/pistol grip junction for natural rotational inspection.
  • The silhouette must instantly convey the classic rugged, mechanical look of the AK-47, relying on distinct geometric shapes rather than textures for detail.
  1. Component & Visual Architecture:
  • Receiver (Main Body): A long, low-profile, rectangular box that forms the central anchor of the rifle. The top should feature a slightly raised, rounded dust cover profile. A tiny horizontal pin sticks out of the right side to represent the charging handle.
  • Barrel Assembly: Extending from the front of the receiver is a long, thin cylinder representing the main barrel. Parallel to it and positioned directly on top is a shorter, slightly thicker cylinder representing the gas tube. The very tip of the barrel features a tiny, wider ring for the muzzle brake, topped with a small block for the front sight post.
  • The Furniture (Wood Components):
    • Stock (Buttstock): A substantial block attached to the rear of the receiver. It must taper outward (wider at the back) and tilt slightly downward.
    • Handguard: A split cylindrical or boxy sleeve that wraps around the rear half of the barrel/gas tube assembly where it meets the receiver.
    • Pistol Grip: A distinct rectangular block positioned underneath the rear of the receiver, noticeably raked backward at an ergonomic angle.
  • Curved Magazine: Attached to the bottom-front of the receiver, this component must feature the iconic, aggressive "banana" forward curve. This silhouette should be achieved by aligning and slightly indexing/rotating consecutive thin blocks or using a curved primitive segment.
  • Trigger Assembly: A small, thin protective loop under the receiver housing a tiny angled piece for the trigger.
  1. Material & Surface Aesthetics:
  • All Metallic Parts (Receiver, Barrel, Gas Tube, Magazine, Sights): Executed in a dark, matte charcoal/gunmetal finish. The material properties must exhibit high metallic reflection and medium roughness to simulate rugged, stamped industrial steel reacting to light.
  • All Wooden Parts (Stock, Handguard, Pistol Grip): Executed in a rich, warm reddish-brown tone (#8B4513 or similar). The material properties must exhibit low metallic reflection and high surface roughness to look like matte, polished laminate wood.
  1. Environment & Presentation:
  • The model is presented inside a dark, minimalist viewport environment (#1a1a1a) with a subtle gradient.
  • The lighting consists of a soft ambient base combined with sharp, contrasting directional lights positioned to create high-end metallic highlights and clean shadows along the weapon's edges.
  • The camera is positioned at a side-profile three-quarter angle by default, and the rifle slowly rotates continuously along its vertical axis to showcase the 3D form.

results

first result

second result

Sign up or log in to comment